Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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 ...

  1. #1
    saikasavar is offline Junior Member Array
    Join Date
    Sep 2004
    Answers
    1

    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


  2. #2
    priyaraji is offline Member Array
    Join Date
    Apr 2006
    Answers
    52
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...