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)What does the following function do?
h = lambda l: [i%10 for i in l]Consider the following recurrence:What is the asymptotic complexity ofT( n ) using the Master Theorem ?
Reminder: if (where k is a positive integer), then
Consider the following recurrence:What is the asymptotic complexity of T( n ) using the Master Theorem?
Reminder: if (where k is a positive integer), then
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 ")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)
Given the following list, link each line of code with the correct result
liste = [10, 20, 30, 40, 50, 60, 70]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)
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?
(liste[--])print
Note: Do not rewrite the entire print statement — just give the value of --.
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