4 "cell_type": "markdown",
11 "cell_type": "markdown",
14 "## Monotone substrings\n",
15 "Find the Longest monotonic substring in a list of numbers (words?)\n",
17 "Extension: longest non-decreasing (or non-increasing) substring.\n",
19 "Extension: longest monotonic subsequence"
23 "cell_type": "markdown",
26 "## Product in grid\n",
27 "Given a grid of numbers, find the largest product of five numbers in a row (totally Project Euler no. 11: https://projecteuler.net/problem=11 ).\n",
29 "Extension: largest product of five adjacent numbers, no necessarily colinear, but can't loop back to same number twice."
33 "cell_type": "markdown",
37 "Given a grid of letters and a list of words, how many words are in the grid?\n",
39 "Extension: what's the longest word you can make from the leftover letters?"
43 "cell_type": "markdown",
47 "Given some letters and a list of words, what's the longest word you can make from the letters.\n",
49 "Extension: you're actually playing scrabble. What's the highest-scoring word you can make?"
53 "cell_type": "markdown",
57 "Given a grid size and a list of moves, who won? Input is a list of games, result is number of games that went to completion\n",
59 "Extension: how many games would be won by on the next go? (At least one of the puzzles has to have a game that would be \"won\" by placing a piece above an already-full column."
63 "cell_type": "markdown",
66 "## Travelling salesman\n",
67 "Given a network, find the shortest route between them, without visiting the same spot twice.\n",
69 "Extension: find the longest travelling salesman route.\n",
71 "Extension: relax the constraint, and allow repeated visits to the same place. What's the shortest route now?"
75 "cell_type": "markdown",
78 "# Virtual machine\n",
79 "Run the assembly program, what's the result? Count the steps in a collatz sequence?\n",
81 "Extension: run it again on different input. This takes longer."
85 "cell_type": "markdown",
88 "## Satisfiability\n",
89 "Given a boolean expression, how many variables are in it?\n",
91 "Extension: is it satisfiable?"
95 "cell_type": "markdown",
99 "Given a grid of hits and misses, where could be battleship be? (count how many positions it could be in) Assume the battleship is unhit.\n",
101 "Extension: the battleship might have been hit, but not sunk. Now how many places could it be?"
105 "cell_type": "markdown",
108 "## Multi-knapsack\n",
109 "How many ways can you fill a bunch of knapsacks (e.g. Advent 2015 days 17, 24)"
113 "cell_type": "markdown",
116 "## Phone number puzzle\n",
117 "Words that fit a phone number.\n",
119 "Extension: non-ascii unicode in input"
123 "cell_type": "markdown",
126 "## Rainfall problem\n",
127 "http://dl.acm.org.libezproxy.open.ac.uk/citation.cfm?doid=6592.6594"
131 "cell_type": "markdown",
134 "## Ten-pin bowling scores. \n",
135 "Given a sequence of number of pins knocked down, calculate total score.\n",
137 "Extension: the sequence of scores is for several players, doing round after round. Who wins?"
141 "cell_type": "markdown",
144 "## Pack and justify text into paragraphs."
148 "cell_type": "markdown",
151 "## Word chain puzzles\n",
152 "Given a start and end word and a dictionary, find a chain of valid words transforming one to the other.\n",
154 "Extension: what is the shortest chain? What is the longest chain without repeated words?"
158 "cell_type": "markdown",
161 "## [Amidakuji / Ghost leg](https://en.wikipedia.org/wiki/Ghost_Leg)\n",
162 "Derangement network simulation.\n",
164 "Extension: sum several networks"
168 "cell_type": "markdown",
171 "## Parcel pricing\n",
172 "By weight and volumetric weight. \n",
174 "Find total postage cost of list of parcels. Each parcel given as w, h, l, mass.\n",
176 "Extension: find the volumetric weight of the packages. \n"
180 "cell_type": "markdown",
183 "## Parcel wrapping: \n",
184 "First, find area, \n",
186 "Extension: find width of 1m strip to wrap. Include extra for wriggle room."
190 "cell_type": "markdown",
194 "How many valid solutions remain after the scores you've seen\n",
196 "Extension: How many scores are possible for this attempt?"
200 "cell_type": "markdown",
203 "## Lift simulator\n",
204 "Given a sequence of lift calls (time of call, floor of call, destination of passenger), what is the best solution to move all the passengers? Cost sum of passenger waits, where a passenger wait is the time between calling a lift and arriving at destination.\n",
206 "Extension: multiple lifts?\n",
208 "Extension: limited capacity in lift"
212 "cell_type": "markdown",
215 "# More problems:\n",
216 "* https://books.google.co.uk/books?id=85NsAHJjTJ0C&pg=PA390&lpg=PA390&dq=phone+number+problem+programming+names&source=bl&ots=c7oC9JvpZz&sig=aNnW6t_nmGK7SyAKchK0MaxqbkA&hl=en&sa=X&ved=0ahUKEwjnzcbbgs7RAhWKKcAKHQiFCDAQ6AEIJDAC#v=onepage&q=phone%20number%20problem%20programming%20names&f=false\n",
217 "* https://www.cs.uoregon.edu/Activities/Luks_Programming_Contest/\n",
218 "* https://www.reddit.com/r/dailyprogrammer/"
222 "cell_type": "markdown",
225 "# Related research\n",
226 "* https://computinged.wordpress.com/2016/12/16/graduating-dr-briana-morrison-posing-new-puzzles-for-computing-education-research/\n",
227 "* https://computinged.wordpress.com/2010/08/16/a-challenge-to-computing-education-research-make-measurable-progress/\n",
228 "* http://dl.acm.org.libezproxy.open.ac.uk/citation.cfm?doid=6592.6594\n",
229 "* https://computinged.wordpress.com/2017/01/18/power-law-of-practice-in-software-implementation-does-this-explain-the-w-going-away/\n",
230 "* https://www.cs.utexas.edu/users/mckinley/305j/pair-hcs-2006.pdf"
235 "execution_count": null,
245 "display_name": "Python 3",
246 "language": "python",
254 "file_extension": ".py",
255 "mimetype": "text/x-python",
257 "nbconvert_exporter": "python",
258 "pygments_lexer": "ipython3",