{
  "translations" :{
    "en": {
      ".exerciseTitle": "Optimized Insertion Sort",
      ".instructLabel": "Instructions:",
      ".instructions": "Use Insertion Sort optimized with shifting to sort the table given below in ascending order. Click on an item to select it and copy its value to another position by clicking on the new position.",
      "av_array_label": "Table to be sorted",
      "av_temp_label": "temp variable",
      "av_ms_copy": "Copy {arr_at_i} from the array into the temp variable.",
      "av_ms_shift": "Shift all the elements, whose values are larger than {temp} (temp) and whose indices are smaller than {i} (i), one step to the right.",
      "av_ms_copy_back": "Copy {temp} back into its right place in the array. The array is now sorted between indices 0 and {i}"
    },
    "fi": {
      ".exerciseTitle": "Lisäysjärjestäminen",
      ".instructLabel": "Ohjeet:",
      ".instructions": "Sovella lisäysjärjestämistä (insertion sort) oheiseen taulukkoon. Arvoja voi kopioida paikasta toiseen klikkaamalla.",
      "av_array_label": "Järjestettävä taulukko",
      "av_temp_label": "temp-muuttuja",
      "av_ms_copy": "Kopioi {arr_at_i} taulukosta temp-muuttujaan.",
      "av_ms_shift": "Siirrä kaikkia alkioita joiden arvo on suurempi kuin {temp} (temp) ja joiden indeksi on pienempi kuin {i} (i), yhdellä askeleella oikealle.",
      "av_ms_copy_back": "Siirrä {temp} temp-muuttujasta taulukkoon oikealle paikalle. Taulukko on nyt järjestetty nollan ja {i}:n välillä."
    }
  },
  "code" : {
    "java": {
      "url": "../../SourceCode/Java/Sorting/Insertionsort.java",
      "startAfter": "/* *** ODSATag: InsertionOpt *** */",
      "endBefore": "/* *** ODSAendTag: InsertionOpt *** */",
      "tags": {
        "highlight": [5, 7, 8],
        "copy_to_tmp": 5,
        "shift": 7,
        "copy_back": 8
      }
    },
    "java_generic": {
      "url": "../../SourceCode/Java_Generic/Sorting/Insertionsort.java",
      "startAfter": "/* *** ODSATag: InsertionOpt *** */",
      "endBefore": "/* *** ODSAendTag: InsertionOpt *** */",
      "tags": {
        "highlight": [5, 7, 8],
        "copy_to_tmp": 5,
        "shift": 7,
        "copy_back": 8
      }
    },
    "python": {
      "url": "../../SourceCode/Python/Sorting/Insertionsort.py",
      "startAfter": "# /* *** ODSATag: Insertionsort shift *** */",
      "endBefore": "# /* *** ODSAendTag: Insertionsort shift *** */",
      "tags": {
        "highlight": [3, 6, 8],
        "copy_to_tmp": 3,
        "shift": 6,
        "copy_back": 8
      }
    }
  }
}
