{"base":{"id":"cs11-13","subject":"Algorithms","title":"Solving an unseen problem","scene":"mix","steps":[{"use":"code10","mode":"decomp","eyebrow":"Understand and decompose","title":"Break it down","body":"Read the problem carefully, list inputs and outputs, then split it into parts.","actions":[{"id":"split","label":"Split"}]},{"use":"code10","mode":"ipo","eyebrow":"Inputs, processes, outputs","title":"What goes in and out?","body":"Identify each part.","actions":[{"id":"i","label":"Inputs"},{"id":"p","label":"Processes"},{"id":"o","label":"Outputs"}]},{"use":"code10","mode":"pseudo","eyebrow":"Write the algorithm","title":"Pseudocode","body":"Write clear pseudocode, then trace it.","controls":[{"id":"age","label":"Age","min":1,"max":90,"step":1,"value":30}]},{"use":"code10","mode":"testdata","eyebrow":"Test it","title":"Try to break it","body":"Choose test data before you finish.","actions":[{"id":"t0","label":"Test 1"},{"id":"t1","label":"Test 2"},{"id":"t2","label":"Test 3"},{"id":"t3","label":"Test 4"}]},{"use":"code10","mode":"quiz","look":"ipo","eyebrow":"Check yourself","title":"Steps","body":"What should you do FIRST with an unseen programming problem?","question":"Choose one.","options":["Start typing code","Read it carefully and identify inputs, processes and outputs","Write the test plan only"],"answer":1,"right":"Correct.","wrong":"Not quite."}],"more":[{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Problem","title":"Parking charges","body":"£2 per hour, first 30 minutes free, maximum £12 per day","code":true},{"tag":"Inputs/outputs","title":"Identify","body":"input: minutes parked\noutput: charge","code":true},{"tag":"Algorithm","title":"Pseudocode","body":"INPUT mins\nIF mins <= 30 THEN charge ← 0\nELSE charge ← CEILING(mins / 60) * 2\nIF charge > 12 THEN charge ← 12\nOUTPUT charge","code":true},{"tag":"Test","title":"Data","body":"30 → 0; 31 → 2; 120 → 4; 1000 → 12; −5 → reject","code":true}]},{"type":"cards","id":"mistakes","eyebrow":"Common mistakes","title":"Watch out for these","items":[{"tag":"Mistake","title":"Ignoring edge cases","body":"Check limits like exactly 30 minutes."},{"tag":"Mistake","title":"Not validating input","body":"Reject negative or non-numeric values."},{"tag":"Mistake","title":"Overcomplicating","body":"Start simple, then improve."}]},{"type":"cards","id":"method","eyebrow":"Set out your answer","title":"Unseen problems","items":[{"tag":"1","title":"Read","body":"Underline inputs, outputs and rules."},{"tag":"2","title":"Decompose","body":"Split into small tasks."},{"tag":"3","title":"Design","body":"Pseudocode or flowchart."},{"tag":"4","title":"Test","body":"Trace with normal, boundary and erroneous data."}]},{"type":"cards","id":"deeper","eyebrow":"Go deeper","title":"More than the lesson","items":[{"tag":"Careers","title":"Technical interviews","body":"Software engineers solve unseen problems in interviews, thinking aloud about inputs, edge cases and tests."},{"tag":"Competitions","title":"Olympiads","body":"Computing olympiads and bebras challenges train computational thinking with puzzles."}]},{"type":"cards","id":"challenge","eyebrow":"Challenge yourself","title":"Stretch your brain","intro":"Try each one on paper before opening the card.","items":[{"tag":"Challenge","title":"Design","body":"Design an algorithm that reads 10 temperatures and outputs the number of days below freezing and the coldest day.\n\nAnswer: loop 10 times with count and min tracking; output count and day of min.","code":true},{"tag":"Challenge","title":"Edge case","body":"What happens if two days share the lowest temperature?\n\nAnswer: decide (first or last) and state it; > keeps the first, >= keeps the last."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Try it yourself","items":[{"title":"Bebras puzzles","time":"20 minutes","need":["A web browser"],"steps":["Try three computational thinking puzzles from a free puzzle site.","For each, write the inputs, outputs and your method."],"why":"Puzzles build problem-solving habits.","safety":"None."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Eight more questions","questions":[{"question":"Decomposition helps by…","options":["removing all variables","skipping testing","splitting a big problem into small parts"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Edge cases are…","options":["inputs at the limits","normal inputs","comments"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"Pseudocode is…","options":["a programming language","a language-neutral way to write algorithms","machine code"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Tracing means…","options":["drawing pictures","compiling","following an algorithm step by step"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"A good first step is…","options":["identifying inputs and outputs","choosing colours","testing"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"Validation should reject…","options":["all values","impossible values","normal values"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Abstraction means…","options":["adding detail","copying code","ignoring unnecessary detail"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"After designing, you should…","options":["test with chosen data","delete it","only run it once"],"answer":0,"right":"Correct.","wrong":"Not quite."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can…","items":["analyse an unseen problem","identify inputs, processes and outputs","write pseudocode","choose test data","trace and refine an algorithm"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"Decomposition","meaning":"Breaking a problem down."},{"word":"Abstraction","meaning":"Removing unnecessary detail."},{"word":"Edge case","meaning":"An input at the limit of what is allowed."},{"word":"Trace","meaning":"Follow step by step."}]},{"type":"sources","id":"sources","title":"Sources","items":["Bebras International Challenge on Informatics","Raspberry Pi Foundation, Isaac Computer Science: computational thinking","BBC Bitesize, GCSE Computer Science: computational thinking","George Pólya (1945), How to Solve It"]}]},"overlay":null}