Break; return; // to school :’(. PotW Solution Problem recap: Write a Befunge program that prints out a Brain**** program that prints out a HQ9+ program.

Slides:



Advertisements
Similar presentations
Gunn ProCo Lynbrook 1st, 2nd, 3rd*, 4th. Results! 1st: Johnny, MG, Victor (perfect score) 2nd: Julia, Tony, Jimmy (perfect score) 3rd: Team "Lynbrook.
Advertisements

BackTracking Algorithms
Planar Orientations Chapter 4 ( ) in the book Written By: Tomer Heber.
(())()(()) ((())()(())()(()))
Review for Test 3.
Integers less than 0 are (positive, negative) integers.
I couldn’t think of anything to put here. So have a cow. Or two.
Chapter 7 Cartesian Coordinate System. Day….. 1.Parts of a Coordinate PlanParts of a Coordinate Plan 2.Graphing Ordered PairsGraphing Ordered Pairs 3.Identifying.
Quick graphs using Intercepts 4.3 Objective 1 – Find the intercepts of the graph of a linear equation Objective 2 – Use intercepts to make a quick graph.
Solving Puzzles Solutions Puzzle 1: Word Search Sample Algorithm:
11-3 The Coordinate Plane Warm Up Problem of the Day
Guided practice with ordered pairs
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
The Coordinate Plane. A coordinate plane is formed when two number lines intersect. The coordinate plane is used to locate points. The two number lines.
§ 1.3 Graphing Equations. Blitzer, Intermediate Algebra, 5e – Slide #2 Section 1.3 The Rectangular Coordinate System In the rectangular coordinate system,
I/O-Algorithms Lars Arge Spring 2009 March 3, 2009.
University of British Columbia CPSC 111, Intro to Computation 2009W2: Jan-Apr 2010 Tamara Munzner 1 More Class Design Lecture 30, Mon Mar
Functions SOL 8.14, 8.16, and 8.17.
Today’s quiz on 8.2 A Graphing Worksheet 1 will be given at the end of class. You will have 12 minutes to complete this quiz, which will consist of one.
Cartesian Coordinate System Mathematics often display relations by using a grid system called the Cartesian Coordinate System.
Please close your laptops and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily homework quiz will be given.
The Legacy of Jack Li.. Where are we? CompSci Club!
Any questions on the Section 3.1 homework?
Objective The student will be able to: graph ordered pairs on a coordinate plane.
Bell Ringer 10/8/14.
1-6 Ordered Pairs and Relations
Pg. 36 #17-31 ANSWERS. Pre-Algebra 1-8 Graphing on the Coordinate Plane Pre-Algebra 1-8 Graphing on the Coordinate Plane Pre-Algebra: 1-8 HW Page 40.
Over Lesson 1–3 A.A B.B C.C D.D 5-Minute Check 1 A.Multiplicative Identity B.Additive Identity C.Associative Property of Addition D.Associative Property.
11-3 The Coordinate Plane Warm Up Warm Up Lesson Presentation Lesson Presentation Problem of the Day Problem of the Day Lesson Quizzes Lesson Quizzes.
Your Officer TeamYour Officer Team  President: Karthik Viswanathan  Vice-President: Virup Gubba  Secretary: Jack Li  Treasurer: Johnny Ho.
Graph ordered pairs of integers in all four quadrants of the Cartesian coordinate system. I CAN graph ordered pairs in ALL four quadrants!!!
 Let A and B be any sets A binary relation R from A to B is a subset of AxB Given an ordered pair (x, y), x is related to y by R iff (x, y) is in R. This.
How do you graph on the coordinate plane?. Free Template from 2 Coordinate Plane x-axis- y-axis- Origin- Quadrants- Horizontal Axis.
Introduction. 2COMPSCI Computer Science Fundamentals.
Chapter 7 Cartesian Coordinate System. Day….. 1.Parts of a Coordinate PlanParts of a Coordinate Plan 2.Graphing Ordered PairsGraphing Ordered Pairs 3.Identifying.
Do Now Write down 4 things that you know about a COORDINATE GRID.
Lesson 4.1- The Coordinate Plane, pg. 192
Graphing on the Coordinate Plane
Houyang 3/25/13. USACO March Contest Congrats to Johnny Ho for scoring over 900 points in the Gold Division o 7th place in US Kudos to Jonathan Uesato.
Staff Briefing Thursday 16th April.  Start Monday 11 th May.  Normal lessons until Friday 22nd May.  Detailed timetable given to all staff.  Detailed.
Public void main What do you call something that’s not static?
Lesson 1-6 and 1-7 Ordered Pairs and Scatter Plots.
Chapter 1-6: Ordered Pairs and Relations Coordinate system: used to locate points also call the Coordinate plane Origin: is a (0,0) and is the point at.
1 CS 177 Week 12 Recitation Slides Running Time and Performance.
Coordinate System Graphing and Ordering Pairs. Coordinate Plane X - Axis Y - Axis Origin Quadrant 1 Quadrant 4Quadrant 3 Quadrant 2.
Objective: Students will graph and name ordered pairs (11-7).
Stacks and Queues. Announcements USACO Open competition results are out o Congrats to Johnny for scoring 2nd in the US USACO Finalists are also announced.
Geometry warm-up Get a strip of paper from the back desk.
1 Algorithms and Networks Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij.
1.8 Inverse Functions, page 222
Lesson 24 – Graphs of Rational Functions
Scatter Plots. Graphing Basics Coordinate Plane – Two real number lines that intersect at a right angle.
Chapter Exploring Transformations
2-1 Relations and Functions Objective: To graph a relation, state its domain and range, and determine if it is a function, and to find values of functions.
CPM Chapter 3 Vocabulary. absolute value The distance of a number from zero on a number line.
Section 2.6 Inverse Functions. Definition: Inverse The inverse of an invertible function f is the function f (read “f inverse”) where the ordered pairs.
Functions 2 Copyright © Cengage Learning. All rights reserved.
Chapter-4(part 1) Graphing Linear Equations and Functions By: Donna, Fannie, Ashley and Nick.
Chapter 3 Graphs and Functions. § 3.1 Graphing Equations.
Chapter 7 Cartesian Coordinate System. Day….. 1.Graphing Ordered Pairs 2.Identifying Ordered Pairs 3.Reflections and Opposites 4.Reflecting Figures 5.Quick.
CSC 212 – Data Structures Lecture 28: More Hash and Dictionaries.
Flood fill algorithm Also called seed fill, is an algorithm that determines the area connected to a given node in a multi-dimensional array, When applied.
Containers and Lists CIS 40 – Introduction to Programming in Python
3-2 Graphs of Linear Equations in 2 Variables
Graphing Linear Equations in Standard Form
Math 083 – Intermediate Algebra
Graph lines given their equation. Write equations of lines.
START DIRECTIONS QUIZ.
Recursively Defined Sequences
Presentation transcript:

break; return; // to school :’(

PotW Solution Problem recap: Write a Befunge program that prints out a Brain**** program that prints out a HQ9+ program that prints out “Hello, world!”. o HQ9+ program output by Brain**** program is “H” o Brain**** program output by Befunge program may be (including the dot at the end; there are different ways to write this program but this is the simplest) o Many ways to approach Befunge program

Example Solutions 20 characters (Andrew Wang) 89* v,"+"-1_v#:< ". 19 characters (Tony Jiang) 89*>: v ^, 13 characters (Steven Hao) "#>56++v,:|

Announcements ProCo on May 26, 8AM – 5PM o Registration is “temporarily full” until more space is found, but there’s a waiting list you can sign up for at US Open/USACO results o Congratulations to Steven Hao and Johnny Ho for placing 2 nd and 3 rd in the country for US Open Gold division! o Lynbrook students did very well in this year’s overall USACO rankings! (Johnny Ho 1 st in Gold, Steven Hao 9 th in Gold, MG Chi 19 th in Gold, Qingqi Zeng 2 nd in Silver, Karen Ouyang 4 th in Silver, Julia Huang 18 th in Silver) o Kudos to everyone who consistently participated in USACO this year! USACO Finalists o Special congratulations to Steven Hao for qualifying for the USACO camp! o Oh, and Johnny too.

Officer Applications This year’s officer application will be made available today! o Check the website ( also will be edhttp://lynbrookcs.com Due on Monday, May 14 at 11:59:59 PM o Results will be announced on Monday, May 23 Same officer positions as this year: o 1 president o 1 vice president o 1 secretary o 1 treasurer

US Open Let’s have a look at some of the problems!

Bronze – Three Lines Given a set of up to n <= cows on the X-Y plane with integer coordinates, determine if it is possible to cover all the cows with three horizontal or vertical lines. Create “histogram” of how many times each distinct y- coordinate appears as well as how many distinct y- coordinates there are o Coordinates may have to be “compressed” first: normalize the coordinates to be within the range [0, N) (or use HashMap) Check 4 cases of what points can be covered by: o 3 horizontal lines: Passes if number of distinct y-coordinates is as most 3 o 2 horizontal, 1 vertical: Sort points on x, for each distinct x-coordinate remove all points with that x-coordinate (simulating vertical line there), test if number of distinct y-coordinates drops to at most 2 o Other two cases identical to these two, except swap “x” and “y”

Silver – Unlocking Blocks Given the shapes and locations of three objects (represented as series of the coordinates for the individual boxes that form the shapes), determine the minimum number of slides (one object moved one tile north, east, south, or west) needed to separate the blocks (bounding boxes no longer overlap).

Silver – Unlocking Blocks Use depth/breadth-first search: find path from initial state to state w/ disjoint bounding boxes o Since we are not looking for any particular path, any of these graph search algorithms works Represent state with 4 integers (x and y offsets of objects 2 and 3 from their original positions) o Each move consists of adding/subtracting 1 from one of these numbers, or adding/subtracting 1 from both x-coordinates or both y-coordinates (representing object 1 being moved) DFS/BFS may quickly branch out but objects and coordinates are small so it’s okay

Gold – Tied Down Gold – Tied Down Given n <= 10 poles stuck in the ground and a string that wraps around them, find the minimum number of poles that must be removed before the string can be untangled o Obviously, the string cannot pass through poles unless they are removed o The poles are conveniently all on the same line (same x-coordinate) Try removing all 2 10 subsets of the poles o Find y coordinates of intersections between the string and the line o Use a stack to simplify the crossings as you traverse the string o If a string crosses across one portion of the line and then immediately returns across the same portion, the string will then unwrap o If the stack is completely emptied by the time the entire string has been traversed, the string can be untangled

Gold – Tied Down Gold – Tied Down

PotW No PotW this week – study for AP exams if you’re taking any! (or finish that AP Lit research paper…) The Befunge problem marks the last PotW of this school year (or does it?)