Fold The Lumies

- Data Sorting -


After the Drakonid invasion, some Coders were destroyed. Rebuilding them requires developing a certain instruction, according to which other Coders will know each step of the procedure. Help the Coders create such an instruction by sorting the Coders according to the rule: from the simplest to the most complex. Order among the Coders is the basis. Why? This is another way of operation that Coders have taken from computers. It is the ubiquitous order in the world of Coders that allows them to function efficiently and perform daily tasks. Their world is as complex as the inside of a computer - that's why regular segregation, sorting, ordering of data is a basic condition for their fast operation. Remember, arranging the Coders in the correct order is only possible by swapping two adjacent Coders. To move the last Coder from the right to the first place on the left, you must successively change its position, place by place.

Application Instructions

After the Drakonid invasion, some Coders were destroyed. Develop an instruction showing step by step how to repair each Coder. Set the Coders in the correct order, swapping two adjacent ones, so that from left to right they are arranged according to the number of elements they have - from the simplest to the most complex.

Conversation Inspirations with Children

Talk to students about known life situations or examples from their immediate environment in which they use or may encounter the concept mentioned:

  • alphabetical sorting: books in the library, students in the register, contacts in the phone;
  • sorting by numbers: order of applications for a trip, numbering of houses and blocks, apartments;
  • arranging toys, books on the shelf from the largest to the smallest.

What is sorting?

In a data set, you need to choose one feature and arrange the elements of this set according to it. A special case is sorting according to the value of each element, e.g., sorting numbers, words. We use sorting algorithms to organize data, enable the use of more efficient algorithms, and present data in a way that is more readable to humans.