This game helps you understand the Insertion Sort algorithm.這個遊戲幫助您理解插入排序演算法。
How to Play:如何遊玩:
You will be presented with an array of numbers. Your goal is to sort them in ascending order using the Insertion Sort algorithm.您將看到一個數字陣列。您的目標是使用插入排序演算法將它們按升序排列。
The algorithm builds the sorted array one element at a time by inserting each new element into its correct position in the already sorted part.演算法透過將每個新元素插入已排序部分的正確位置,一次一個元素來建構排序陣列。
The element being inserted (called the "key") will be highlighted. Compare it with elements in the sorted part and decide whether to shift elements or insert the key.正在插入的元素(稱為「鍵」)將被突出顯示。將其與排序部分中的元素比較,並決定是否移位元素或插入鍵。
Continue this process until the entire array is sorted.繼續這個過程,直到整個陣列排序完成。
Score/Max: 0/0
Gameplay Description:遊戲玩法說明:
In Insertion Sort, you build the sorted array one element at a time by inserting each new element into its correct position in the already sorted part.在插入排序中,您透過將每個新元素插入已排序部分的正確位置,一次一個元素來建構排序陣列。
The element being inserted is called the "key" and will be highlighted for you.正在插入的元素稱為「鍵」,將為您突出顯示。
Compare the key with elements in the sorted part and decide whether to shift elements or insert the key.將鍵與排序部分中的元素比較,並決定是否移位元素或插入鍵。