algorithm - What are the applications of Pancake Sorting? -


I've recently learned about this pancake sorting: And I was wondering why we use it when we compare it to better sorting algorithms. Is this application actually proved beneficial in certain types of scenarios?

Although I have no practical experience with this sorting algorithm I have found that these lines are useful in Wikipedia :

.. This is a variation of the sorting problem in which only the first approval is to reverse the elements of some prefixes. Unlike traditional sorting algorithm, which probably tries to sort with the lowest comparison, the goal is to sort it as a few reversal as possible.

It also states that there are applications in parallel processor networks, in which it can provide an effective path algorithm between processors. I personally encountered many online judge programming competition problems, which require the minimum number of mutations to sort the sequence though the programming competition problem is not the real world problem example.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -