logo

Crowdly

Browser

Add to Chrome

[25-26] Algorithmique avancée 2 [S3] [SPE]

Looking for [25-26] Algorithmique avancée 2 [S3] [SPE] test answers and solutions? Browse our comprehensive collection of verified answers for [25-26] Algorithmique avancée 2 [S3] [SPE] at moodle.esme.fr.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

What does the following expression returns?

(lambda num : num*num)(2)

View this question

What does the following function do?

h = lambda l: [i%10 for i in l]

View this question

Consider the following recurrence:

T parenthèse gauche n parenthèse droite égal à 2 T ouvrir la parenthèse n sur 2 fermer la parenthèse plus n

What is the asymptotic complexity ofT( n ) using the Master Theorem ?

Reminder:  if a égal à b puissance k(where k is a positive integer), then log indice b parenthèse gauche a parenthèse droite égal à k

0%
0%
0%
View this question

Consider the following recurrence:

T parenthèse gauche n parenthèse droite égal à 4 T ouvrir la parenthèse n sur 2 fermer la parenthèse plus n

What is the asymptotic complexity of T( n ) using the Master Theorem?

Reminder:  if a égal à b puissance k(where k is a positive integer), then log indice b parenthèse gauche a parenthèse droite égal à k

0%
0%
0%
View this question

Calculate the order of complexity of this program:

def test_de_presence (L) :

if 2 in

L :

print ( " Il y est "

)

else

:

print(

" Il n’y est pas ")
0%
0%
0%
View this question

Calculate the complexity of the algorithm described below. m and n are two positive integers.

def algorithm(m, n):

for i in range(1, m + 1

):

for j in range(1, n + 1

):

for k in range(1, j + 1

):

print(i, j, k)

View this question

Given the following list, link each line of code with the correct result

liste = [10, 20, 30, 40, 50, 60, 70]
View this question

Write the line of code that stores in a list lst the values from 0 to 100 with a step of 2. (NO SPACES)

Note:use list function (see Appendix)

View this question

Let’s consider the following list:

liste = ["maths", "info", "python", "exposants", "alpha", "fonctions", "parabole", "equilateral", "orthogonal", "cercles", "isocèle"

]

What should replace -- to display the string isocèle?

print

(liste[--])

Note: Do not rewrite the entire print statement — just give the value of --.

View this question

Given the following list:

liste=["maths", "info", "python", "exposants", "alpha", "fonctions", "parabole", "equilateral", "orthogonal", "cercles", "isocèle" ]

What is the value of the variable chaine?? chaine = liste[8] + " " + liste[10]  # Note: there is a space between the quotes

0%
0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.esme.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome