I'm not interested in any particular algorithm; I just want to know if doing that has a common name that I'm just not aware of.
To be specific, say I have X = [42, 0, 99]
and Y = ["a", "b", "c"]
. What is it called when I reorder Y
in the same way that I have to reorder X
to make X
a sorted list, winding up with ["b", "a", "c"]
?
What about the reordering itself, which is kind of a list - i.e. [<2nd>, <1st>, <3rd>]
- does that have a common name too?
It seems like that would be the kind of operation that would have a name that I should know, with its own Wikipedia page and everything (or an entry in the NIST's Dictionary of Algorithms and Data Structures: http://xw2k.nist.gov/dads/). I'm probably going to feel like a dummy when someone answer this.