Λιγο βοήθεια με τη C

Chameleon cham_gss at hotmail.com
Fri Jun 2 23:01:19 EEST 2006


Giorgos Keramidas wrote:
> On 2006-06-02 00:17, Chameleon <cham_gss at hotmail.com> wrote:
>> An lew malakies einai epeidh eimai piwmenos. Exw katebasei ikanh
>> posothta ouzou.
>>
>> Auto poy xrhsimopoieis einai C++
>> an 8eleis C sketh, xrhsimopoihse printf anti gia cout.
>>
>> Anti na xrhsimopoieis auto to blakwdes algori8mo ta3inomhshs,
>> xrhsimopoihse quick sort.
> 
> Δεν είναι πάντα η πιο κατάλληλη η qsort() :P

oxi. kalyterh einai h merge-sort. exei sygklish akribws n * log(n)

enw o qsort h kalyterh toy sygklish einai n * log(n) kai h xeiroterh n ^ 2.


To kalo me ton qsort einai oti den xreiazetai na grafei to array apo mia 
  perioxh se allh enw o merge sort xreiazetai (tous pointers).



Twra an ennoeis san klhsh ths C, den 3erw ti ennoeis kai giati. tespa!



More information about the Linux-greek-users mailing list