logo

Crowdly

Browser

Додати до Chrome

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

Шукаєте відповіді та рішення тестів для [25-26] Algorithmique avancée 2 [S3] [SPE]? Перегляньте нашу велику колекцію перевірених відповідей для [25-26] Algorithmique avancée 2 [S3] [SPE] в moodle.esme.fr.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

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:

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%
Переглянути це питання

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%
Переглянути це питання

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%
Переглянути це питання

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?

print

(liste[--])

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

0%
0%
0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.esme.fr?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome