أريد تحليل للخوارزميات التالية
ANALYZE THE FOLLOWING ALGORITHM
Algorithm 1
•
MIN (a[1], …, a[n])
m ← a[1];
for i ← 2 to n
if a < m
then m ← a;
Algorithm 2
for i=2 to n do
x1= a(i)
j=i-1
while j>0 and a(j) >x1 do
a(j+1)=a(j)
j=j-1
repeat
a(j+1)= x1
repeat
end
هذا ايميلي بدون مسافات بين الحروف
yosefssss @ hotmail . c o m