Exforsys

Online Training

which sorting is better

This is a discussion on which sorting is better within the C and C++ forums, part of the Programming Talk category; hi all i want some information about sorting algorithms. for Linked List which sorting technique is better for normal array ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-01-2007, 03:02 AM
Junior Member
 
Join Date: Sep 2004
Posts: 1
saikasavar
Exclamation which sorting is better

hi all

i want some information about sorting algorithms.
for Linked List which sorting technique is better
for normal array whic sorting technique is better
i) for presorted array
ii) for completely reversed order
iii) for random list.

regards
sai
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-20-2008, 04:30 PM
Member
 
Join Date: Apr 2006
Posts: 65
priyaraji is on a distinguished road
Choosing the best sorting techniques for linked list depends on the requirements like
If you want sorting during creation of linked list you can go for insertion sort
If you want sorting after creation of linked list, then sort the list as an entity, by swapping nodes until they are in order.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
sorting in 2-dimensions (sorting structures) hat123 C and C++ 1 04-07-2007 09:00 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM


All times are GMT -4. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.