Jump to content

Bubble Sort !


Recommended Posts

Posted

Detail the steps of the Bubble sort algorithm applied to the following vector:
[“celery”, “carrot”, “cabbage”, “tomato”]


help me solve this .. !! *<:(

Posted

help me ante exact nee question enti ...bubble sort algo raada leka strings ki ela ana?

Posted

C# lo aithe CompareTo utility use chesukuni cheyachu.
first , first string ni second ni compare cheyyi, increasing order lo unte ok, lekapothe swap cheyyi,
next second and third
next third and last

ila oka iteration ayyaka, malli start with 2nd element..ila chesukuntu pothe it will be sorted.

net lo chaala tutorials unnai chudu..
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=5199&lngWId=2

Posted

ivvala repu skool pillodu kuda cheptadu bubble sort heap sort.. binary tree.. hashing etc etc

Posted

[quote name='SaaliPurugu' timestamp='1348578641' post='1302536102']
ivvala repu skool pillodu kuda cheptadu bubble sort heap sort.. binary tree.. hashing etc etc
[/quote]

aithe ippudu ee thread evaranna school pillodiki chupinchali annamata ok.

neeku raada mama ??

Posted

[quote name='SaaliPurugu' timestamp='1348578641' post='1302536102']
ivvala repu skool pillodu kuda cheptadu bubble sort heap sort.. binary tree.. hashing etc etc
[/quote]

ipudu school pillodiki iste .. vadu school ayaka ista antadu anta time ledu .. neku teliste chepu .. naku bubble sort telusu kani .. vector data ki ela apply cheyalo telidu ..

Posted

[quote name='SaaliPurugu' timestamp='1348578641' post='1302536102']
ivvala repu skool pillodu kuda cheptadu bubble sort heap sort.. binary tree.. hashing etc etc
[/quote]

ipudu school pillodiki iste .. vadu school ayaka ista antadu anta time ledu .. neku teliste chepu .. naku bubble sort telusu kani .. vector data ki ela apply cheyalo telidu ..

Posted

[quote name='mickey' timestamp='1348570899' post='1302535951']
C# lo aithe CompareTo utility use chesukuni cheyachu.
first , first string ni second ni compare cheyyi, increasing order lo unte ok, lekapothe swap cheyyi,
next second and third
next third and last

ila oka iteration ayyaka, malli start with 2nd element..ila chesukuntu pothe it will be sorted.

net lo chaala tutorials unnai chudu..
[url="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=5199&lngWId=2"]http://www.planet-so...d=5199&lngWId=2[/url]
[/quote]

ya i knw the procedure but oka vector data ni ela swap cheyalo ..dani steps telivu ...

Posted

edhi simple vayya...vector lo add chesko strings ani...
once you add all of them..
make a direct comparison like vector.Element(i+1) > vector.Element(i) false avuthey swap cheyi...katham ganthey

  • Upvote 1
Posted

[quote name='Tokkalodi' timestamp='1348599941' post='1302538274']
assignments neevena porilakosam patlu padutunnava sSa_j@il
[/quote]

@~` nade avatledu ina porilu kosam enti chesedi ..antha ledu bhayya .. nakosam ee ..

×
×
  • Create New...