Algorithm for sorting the elements of a data set

Asked

Viewed 108 times

1

"A team needs to write an algorithm that sorts the elements of a data set, from a certain criterion defined by the function. Knowing that the data set does not have more than 100 elements and that the team does not have enough experience to implement very difficult algorithms. What algorithm would you indicate for solving this problem? Justify your answer."

Guys, I’m cracking my skull on this issue. It’s very important to do and understand it. Could you help me, please? Thank you in advance!

  • 2

    Do you have any specific questions? We are not here to do your exercises.

  • I totally agree, bigown. There is a specific doubt, is that I am half beginner and for two days I think and nothing comes out. But I agree with the policy of the OS and will not be so general in my posts. Thank you for the touch!

1 answer

3


I’m not going to give you a straight answer because, as commented by Maniero, the OS community discourages doing other people’s homework. However giving you a direction if you are lost: what you need is to know the sorting algorithms classics, search on Bubble Sort, Selection Sort, Insertion Sort, merge Sort and Quick Sort (there are others but I won’t list them all). You need to understand what are the advantages and disadvantages of each to be able to answer the question accurately.

Note: I leave you a tip, depending on the case no matter which one you use.

  • 1

    Thank you very much, Bruno. I agree with the policy of the community of the SO. I will look for ways to resolve based on your tips. Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.