Help please unable to resolve C language - programming - HWzone forums
adplus-dvertising
Skip to content
  • Create an account
  • About Us

    Hello Guest!

     
    Please note - in order to participate in our community, comment and open new discussions, you must join as a registered member.

    Our members enjoy many advantages, including the ability to participate in discussions, enjoy raffles and promotions for members of the site, and receive our weekly content directly by email.

    Do not like being harassed by email? You can register for the site but do not submit your registration to the weekly email updates.

Help Please unable to resolve C language


Alon Kesselman
 Share

Recommended Posts

Hi friends Thanks in advance to those who help can not solve the question 

 

 One of the simplest sorting algorithms is called Insert Sort.
The algorithmic idea:
- On the right side of the array, we will have an unsorted sub-array, which in each iteration will be reduced by one member.
- At the beginning of the algorithm, the unsorted sub-array is the entire array.
- On the left side of the array, we will have a sorted sub-array, which in each iteration will grow by one limb.
- At the beginning of the algorithm, the sorted subset is empty.
- In each iteration we will look at an organ belonging to the sub-array, and we will put it in the appropriate place in the sub-
Sorted array.

- The consequences are that the sorted area grows by one, and the non-sorted area by one.
- When there are no members left in the unsorted subset, the algorithm will end.
Exactly this algorithm - write an action in c:

😄 void InsertSort (int * arr, int size)

 

Edited By Alon Kesselman
Link to content
Share on other sites

  • Alon Kesselman changed the title to Help Please unable to resolve C language

Join the discussion

You can then join the discussion and then join our community. If you already have an account with us, please Log in now To comment under your username.
Note that: The comment will appear to the surfers after approval by the board management team.

guest
Add a comment

×   The content pasted is with formatting.   Remove formatting

  Only 75 emoji are allowed.

×   Your link has been automatically assimilated.   Show as regular link

×   Your previous content has been automatically restored.   Clear all

×   You can not paste images directly. Upload or insert images from URL.

 Share

  • Latest news

  • Buzz-Zone: Everything hot on the net

×
  • Create new ...

At the top of the news:

new on the site