I am not interested in any particular algorithm; I just want to know if this one has a common name that I just don't know about.
To be specific, let's say I have X = [42, 0, 99] and Y = ["a", "b", "c"]. What is called when I change the order of Y in the same way as I have to reorder X to make X a sorted list, ending with ["b", "a", "c"]?
What about reordering itself, which is a kind of list, that is, [<2nd>, <1st>, <3rd>] - also has a common name?
It seems that this will be an operation that will have a name that I should know, with its own Wikipedia page and everything else (or an entry in the NIST dictionary of algorithms and data structures: http://xw2k.nist.gov/dads/ ) . I will probably feel like a mannequin when someone answers this.
source
share