DECEMBER 8 TH, 2008 Lynbrook Computer Science. Announcements USACO December – tonight! ACSL #1 – next week TopCoder Marathon Match – Wednesday $5000 purse!

Slides:



Advertisements
Similar presentations
Computer Science Club The best thing about a boolean is even if you are wrong, you are only off by a bit.
Advertisements

L YNBROOK C OMPUTER S CIENCE Member Meeting, November 3, 2008.
L YNBROOK C OMPUTER S CIENCE Member Meeting, November 10, 2008.
Sunken Millions Life and Earth Science Third Grade Life and Earth Science Third Grade.
Great Theoretical Ideas in Computer Science.
Year 10 ISA Controlled assessment Week starting March 4 th 2013.
Intro to USACO Strategy
1-1 O Why Not Tonight O Why Not Tonight. 1-2 O Why Not Tonight O Why Not Tonight.
November 3 rd – Warm Up Answer in “Food Webs” Look at the diagram on Screen 2, identify the producers. Then, identify the two levels of consumers – which.
Boyer Moore Algorithm String Matching Problem Algorithm 3 cases Searching Timing.
QUESTION 1 What day is it today? A) I’m Tuesday. B) I have Tuesday. C) Tuesday. D) It’s Tuesday.
CSE116: Introduction to Computer Science 2 Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
Lecture 37 CSE 331 Nov 4, Homework stuff (Last!) HW 10 at the end of the lecture Solutions to HW 9 on Monday Graded HW 9 on.
Lecture 13 CSE 331 Oct 2, Announcements Please turn in your HW 3 Graded HW2, solutions to HW 3, HW 4 at the END of the class Maybe extra lectures.
COMS W1004 Introduction to Computer Science June 11, 2008.
Minimum Spanning Network: Brute Force Solution
Public Key Cryptography Topical Lecture Week 10. PUBLIC AB Public Key Cryptography A: Hey B, send me an encoded message. This is how you encode a message.
W16: December 1-5, 2014 Week 16. Monday, December 1 Checking in of 8 Step DBQ Atlas Activity! Goal – ASWBAT… accurately use maps to answer questions based.
6 th Grade Science Week 6 CCA (Reg) Question 1 Answers 1 Question 2 Question 3 Question 4 Question 5 Question 6 Answers 2 Answers 3 Answers 4 Answers.
Computer Science Education Week Anthony Wayne MS.
Lynbrook Kindergarten Center. Guided Reading The DRA is administered in December and June. Groups are formed by Guided Reading Level AA, A, 2,4 etc. Guided.
Lynbrook Computer Science Monday, December 7 th, 2009.
Math Warm-Up Week 7 Questions Wednesday. 1. Write the next 5 multiples of 9. 9, 18, 27,
Intro to Computer Algorithms Lecture 11 Phillip G. Bradford Computer Science University of Alabama.
computer
Programming Practice Programming Puzzles and Competitions CIS 4900 / 5920 Spring 2009.
Reihaneh Rostami, Zeyun Yu Computer Science Department University of Wisconsin – Milwaukee Objective -3D Point Matching is the process of finding a point.
Announcements: Please pass in Assignment 1 now. Please pass in Assignment 1 now. Assignment 2 posted (when due?) Assignment 2 posted (when due?)Questions?
Happy Birthday Julia Courier New. USACO December Contest - Congratulations to Jon+Julia+Andy for promoting to gold And Johnny - 2th place in gold among.
Please sign in on the sign up sheet MTH Computer Science Club.
February 23, Announcements ACSL – March 9 Digital Electronics – 2 Graph Theory – 2 Boolean Algebra – 1 USACO – March
Solving Systems of Equations Algebraically Elimination.
Lecture 6 Complex Sorting 1. Announcements Homework 3 due Monday No participation this week Test is on Thursday Part of Wednesday will be review I will.
Supercomputing in Social Science Maria Marta Ferreyra Carnegie Mellon University.
Confident Cougars December 8-12, Texas History Chapter 7 – Road to the Alamo Review for Semester Exam.
WEEK 1 You have 10 seconds to name…
Name _____________________________________________ Week of__________________ Find the matching stamp and stamp your letter in the box.
Lecture 14 Jianjun Hu Department of Computer Science and Engineering University of South Carolina CSCE350 Algorithms and Data Structure.
Mondays at Brunch Mr. Peck’s Room, 608 There’s no place like
ANNOUNCEMENTS ANNOUNCEMENTS FRIDAY, NOVEMBER 13, 2015 TODAY IS AN “A” DAY.
Erik Jonsson School of Engineering and Computer Science FEARLESS Engineering ENGR 3300 – 505 Advanced Engineering Mathematics
Week 16 BIO Finals. No First Five Learning Target: Everything!! Today’s Activities: ● Review on your own...Tomorrow Questions! Notecard: ● Front side.
ICS220 – Data Structures and Algorithms Analysis Lecture 14 Dr. Ken Cosh.
Sorting  Selection Sort  Bubble Sort  Insertion Sort  Merge Sort (chap. 14)  Quick Sort (chap. 14)  Heap Sort (chap. 9)
 Given: › Total number of cows (N) › Number of cows allowed to advance (K) › Number of votes each cow receives (A, B)  Rules: › Top K cows (w/ greatest.
Announcements December 02, 2007 Remember to check the bulletin for:
Upcoming Contests TopCoder Marathon Match 49 (currently running – ends Feb. 18 th )
Next week is Computer Science Week…. You will take part in the Hour of Code; you will join millions of people across the world who will start to learn.
Lynbrook Computer Science “The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the.
SEC 340 Week 1 Summary Check this A+ tutorial guideline at For more classes visit
SEC 340 Week 2 Summary Check this A+ tutorial guideline at For more classes visit
SEC 340 Week 3 Summary Check this A+ tutorial guideline at For more classes visit
SEC 340 Week 4 Summary Check this A+ tutorial guideline at For more classes visit
SEC 340 Week 5 Summary Check this A+ tutorial guideline at For more classes visit

Generalized Hough Transform
CIS 291 Become Exceptional/ newtonhelp.com. CIS 291 Entire Course For more course tutorials visit CIS 291 Week 1 Individual Create.
Lecture 34 CSE 331 Nov 20, 2017.
Programming Puzzles and Competitions CIS 4900 / 5920 Spring 2009
قوانين برگزاري مناقصات و آيين نامه مالي و معاملاتي دانشگاه علوم پزشكي و خدمات بهداشتي ،درماني تهران
Lecture 37 CSE 331 Nov 30, 2011.
Maze Design Presentation Questions
Lecture 34 CSE 331 Nov 21, 2016.
The largest learning event in history during Computer Science Education Week: December 4-10, 2017.
YEAR 7 COMPUTER SCIENCE HOUSE COMPETITION
DNA Solution of Hard Computational Problems
An overview from Sylvain Côté
THANK YOU for helping make tonight possible
offers for junior researchers in its research teams
Presentation transcript:

DECEMBER 8 TH, 2008 Lynbrook Computer Science

Announcements USACO December – tonight! ACSL #1 – next week TopCoder Marathon Match – Wednesday $5000 purse!

USACO: How to stay under time-limit Know when to brute force Use custom tester Identify slowest parts of program

When to brute-force? 1 sec = ~ 1 million operations/iterations Depends on size/complexity of each iteration Plug in max values, determine max possible states that will need to be tested

Example There are P (3 <= P <= 15) people. Given that the productivity of two people Pi and Pj working together is Wi_j (-1000 <= Wi_j <= 1000), what is the most productive group that can be formed? How many states will we need to test, at most?

There are 2^15 = 32,768 possible groups to be formed at most (with 15 people). In each group, each person can either be in the group, or not in the group. Thus with P people the number of possible groups is 2^P. We can brute-force!

USACO Custom Tester USACO allows you to test your program with custom test data Write a program to generate max size test data Run it on USACO server to see if your program is fast enough

Identifying slowest parts of a program Nested loops = BAD! Recursive functions: Check how many times they call themselves. E.g. Flood-fill recursion calls itself 8 times each time (once for each direction)

Improving algorithms? Nested loops: Devise a new algorithm that has fewer nested loops Recursion: Can the solution be found with an iterative algorithm? (Usually, it can)