We made an algortihm as a normal life game in wich you have a deck of cards . After a while, using the Algorithm Bubble Sort, and another Algorithm, they order in groups (clovers, hearts,pics, diamonds) and in an order for 1 to K. The French Cards are 52 (without the jokers) , the 52 cards represent the 52 weeks of the year, the for groups are the four station in the year and the 13 cards in a group represent an specific year in the chinease years.
First : you must do a bubble sort in the first line, when two cards with the same numbers are next to the other , they must compare the group, if one is pics it go up (pics always up), but if there are in the up line (pics) the other will go down, if one of them is diamond it will get down (diamond always down). When you can not make any other move in the line you must continue with the down line and repeat the system.
This is how the structure must be, the 1 must be in that order
Second : When you cant make more moves to the right , you must look the down linke and follow this instruction : Pics ever go up and diamonds ever go down. The pics and diamond should be now in order, you must exchange the hearts with the clovers and then you have your algorithm result.
This is how the deck of cards must be , when the algorithm is resolved
This is the programable language of the Algorithm
This is a concept mindmap of the definition of Algorithms and some other ideas.