Statements (25)
Predicate | Object |
---|---|
gptkbp:instanceOf |
gptkb:mathematical_concept
|
gptkbp:application |
game theory
algorithm design |
gptkbp:category |
number theory
recreational mathematics |
gptkbp:describes |
elimination game
|
gptkbp:field |
theoretical computer science
combinatorics |
gptkbp:firstDescribed |
ancient times
|
gptkbp:generalizes |
gptkb:generalized_Josephus_problem
|
gptkbp:hasVariant |
every k-th person eliminated
|
https://www.w3.org/2000/01/rdf-schema#label |
Josephus problem
|
gptkbp:input |
step count
number of people |
gptkbp:namedAfter |
gptkb:Flavius_Josephus
|
gptkbp:notableExample |
Josephus and 40 soldiers
|
gptkbp:output |
safe position
|
gptkbp:relatedTo |
permutation
circular linked list |
gptkbp:solvedBy |
closed-form formula
recursive formula |
gptkbp:supportsAlgorithm |
O(log n) time solution for k=2
O(n) time solution |
gptkbp:bfsParent |
gptkb:Flavius_Josephus
|
gptkbp:bfsLayer |
7
|