# -*- coding: utf-8 -*- """ Created on Tue Jan 13 17:04:35 2026 @author: DELL """ def recherche(valeur,tab): for elt in tab: if elt==valeur: return True return False import time import matplotlib.pyplot as plt n=100_000 x=[] y=[] for i in range(4): t=[i for i in range(n)] a=time.time() recherche(n,t) b=time.time() x.append(n) y.append(b-a) n=n*2 plt.scatter(x,y) plt.show()