Pancake sorting
Mathematics problem
Pancake sorting is the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it. A pancake number is the minimum number of flips required for a given number of pancakes.
Nº Q2736589 ★
Common · Knowledge
Pancake sorting
Mathematics problem
Pancake sorting is the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it. A pancake number is the minimum number of flips required for a given number of pancakes.
From Wikipedia
Pancake sorting is the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it. A pancake number is the minimum number of flips required for a given number of pancakes. In this form, the problem was first discussed by American geometer Jacob E. Goodman. A variant of the problem is concerned with burnt pancakes, where each pancake has a burnt side and all pancakes must, in addition, end up with the burnt side on the bottom. All sorting methods require pairs of elements to be compared. For the traditional sorting problem, the usual problem studied is to minimize the number of comparisons required to sort a list. The number of actual operations, such as swapping two elements, is then irrelevant. For pancake sorting problems, in contrast, the aim is to minimize the number of operations, where the only allowed operations are reversals of the elements of some prefix of the sequence. Now, the number of comparisons is irrelevant.
Text: Wikipédia, CC BY-SA 4.0. · Image: Wikimedia Commons (CC0) ·
Related cards
-
C
Counting sort
Sorting algorithm
Nº Q1124964 ★
Not listed
-
P
Partition problem
NP-complete problem in computer science
Nº Q1065968 ★
Not listed
-
Selection sort
Sorting algorithm
Nº Q220831 ★★
Not listed
-
Knapsack problem
Problem in combinatorial optimization
Nº Q864457 ★★★
Not listed
-
T
Topological sorting
An ordering of the vertices of the directed graph for which each edge is directed from earlier to later in the ordering
Nº Q753127 ★★★
Not listed
-
K
Kissing number
Problem of determining the maximum number of non-overlapping spheres that can be simultaneously tangent to another sphere of the same size
Nº Q1371530 ★
Not listed