Notices
Results 1 to 2 of 2

Thread: sorting technique c/c++ code

  1. #1 sorting technique c/c++ code 
    New Member
    Join Date
    Nov 2010
    Posts
    1
    Hello everyone , i'm new to this thing so plz help me how to solve the following problem , if anyone can send me the c/c++ code i shall be thankfull to him



    An eccentric doctor visits his patients in order of decreasing age. Patients entering the waiting list specify not only their names but also their ages. Each time the doctor wants to visit a patient, the oldest is selected and removed from the list (so children may have to wait a very long time). Write a program, based on elementary sorting techniques to sort this list on first on Age and then on Patient ID, which this doctor can use.

    Before

    PatientID Name Age

    P102 Arif Taj Mairza 50
    P203 Sadar Khan 65
    P546 Afsheen Bano 34
    P605 Kai Whong 45
    P340 Hanah Duong 23
    P391 Usman Habib 65
    P200 Alina Shah 34

    After
    PatientID Name Age

    P203 Sadar Khan 65
    P391 Usman Habib 65
    P102 Arif Taj Mairza 50
    P605 Kai Whong 45
    P200 Alina Shah 34
    P546 Afsheen Bano 34
    P340 Hanah Duong 23



    Solve this problem by applying four different elementary sorting techniques that are

    a) Selection sort
    b) Bubble sort
    c) Insertion sort
    d) Shell sort


    Reply With Quote  
     

  2.  
     

  3. #2 sorting technique c/c++ code 
    Suspended
    Join Date
    Nov 2010
    Location
    asdas
    Posts
    1
    There are some Technique For a Sorting in a C/C++.

    1. Bubble Sort
    2. Heap Sort
    3. Shell Sort
    4. insertion Sort
    This all have a different type of specification and work on the different bases.


    Reply With Quote  
     

Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •