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 game will highlight the key element that needs to be inserted into the correct position.遊戲將突出顯示需要插入正確位置的關鍵元素。
Choose to shift elements to make space or insert the key element into its correct position.選擇移動元素以騰出空間,或將關鍵元素插入正確位置。
Continue this process until the entire array is sorted.繼續這個過程,直到整個陣列排序完成。
Gameplay Description:遊戲玩法說明:
In Insertion Sort, you build the sorted list by repeatedly inserting the next element into its correct position.在插入排序中,您透過重複將下一個元素插入正確位置來建立排序列表。
Elements are shifted to make space for the key element to be inserted.元素會被移動以騰出空間,讓關鍵元素插入。
Your score increases for correct actions and decreases for incorrect ones.您的分數會因正確操作而增加,因不正確操作而減少。