agent_47
08-06-2007, 01:48 PM
السلام عليكم ورحمة الله وبركاته
انا احتاج مساعدة منكم في برنامج ما قدرت احل جزئيات منه
البرنامج المطلوب :
you are asked to make a bubble sort program to sort an array of random integers (the random number has range from 1->100000) , you will test the sorting program for different array size(10,100,1000,10000,100000,1m,10m) and you will calculate the consumed time in sorting the array in each case , then you will make a chart between the number of elements in array and the consumed time in sorting
also you will do this task for insertion sort and compare between the two algorithms
اما الحل اللي قدرت اوصله لحد الان موجود في الرابط والشيء الي ما توصلت لحل له هو التوقيت وحساب الفرق ومشكلة عمل مصفوفة اراي راندوم(عشوائي) من اكثر من مليون
على فكرة انا وضعت كيفية عمل الراندوم ( الكودز ) وكذلك كود التايم ولكن لا اعرف كيفية ترتيبها ومناداتها
فاتمنى تساعدوني واكون لكم من الشاكرين :)
انا احتاج مساعدة منكم في برنامج ما قدرت احل جزئيات منه
البرنامج المطلوب :
you are asked to make a bubble sort program to sort an array of random integers (the random number has range from 1->100000) , you will test the sorting program for different array size(10,100,1000,10000,100000,1m,10m) and you will calculate the consumed time in sorting the array in each case , then you will make a chart between the number of elements in array and the consumed time in sorting
also you will do this task for insertion sort and compare between the two algorithms
اما الحل اللي قدرت اوصله لحد الان موجود في الرابط والشيء الي ما توصلت لحل له هو التوقيت وحساب الفرق ومشكلة عمل مصفوفة اراي راندوم(عشوائي) من اكثر من مليون
على فكرة انا وضعت كيفية عمل الراندوم ( الكودز ) وكذلك كود التايم ولكن لا اعرف كيفية ترتيبها ومناداتها
فاتمنى تساعدوني واكون لكم من الشاكرين :)