CodeVita Season III (2014 – 2015 Season).

Slides:



Advertisements
Similar presentations
Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
Advertisements

Greedy Algorithms (Chap. 16)
Artificial Intelligence Presentation
O(N 1.5 ) divide-and-conquer technique for Minimum Spanning Tree problem Step 1: Divide the graph into  N sub-graph by clustering. Step 2: Solve each.
Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
Comp 122, Spring 2004 Greedy Algorithms. greedy - 2 Lin / Devi Comp 122, Fall 2003 Overview  Like dynamic programming, used to solve optimization problems.
Greedy Algorithms Spanning Trees Chapter 16, 23. What makes a greedy algorithm? Feasible –Has to satisfy the problem’s constraints Locally Optimal –The.
1 Appendix B: Solving TSP by Dynamic Programming Course: Algorithm Design and Analysis.
Seminar In Game Theory Algorithms, TAU, Agenda  Introduction  Computational Complexity  Incentive Compatible Mechanism  LP Relaxation & Walrasian.
Table of Contents Why Play Chess? Setting Up the Board Get to Know the Pieces Check and Checkmate What the Chess Pieces Are Worth Opening Goals Endgame.
Five Problems CSE 421 Richard Anderson Winter 2009, Lecture 3.
Computability and Complexity 13-1 Computability and Complexity Andrei Bulatov The Class NP.
Complexity Theory CSE 331 Section 2 James Daly. Reminders Project 4 is out Due Friday Dynamic programming project Homework 6 is out Due next week (on.
November 10, 2009Introduction to Cognitive Science Lecture 17: Game-Playing Algorithms 1 Decision Trees Many classes of problems can be formalized as search.
1 Single Machine Deterministic Models Jobs: J 1, J 2,..., J n Assumptions: The machine is always available throughout the scheduling period. The machine.
The Theory of NP-Completeness
Computational Complexity, Physical Mapping III + Perl CIS 667 March 4, 2004.
1 Game Playing Chapter 6 (supplement) Various deterministic board games Additional references for the slides: Luger’s AI book (2005). Robert Wilensky’s.
Given Connections Solution
Finite probability space set  (sample space) function P:  R + (probability distribution)  P(x) = 1 x 
Coloring 3/16/121. Flight Gates flights need gates, but times overlap. how many gates needed? 3/16/122.
1 Reinforcement Learning: Learning algorithms Function Approximation Yishay Mansour Tel-Aviv University.
Lecture 5CSE Intro to Cognitive Science1 Algorithmic Thinking III.
Minimax.
Artificial Intelligence in Game Design Problems and Goals.
MCS312: NP-completeness and Approximation Algorithms
Merkle-Hellman Knapsack Cryptosystem Merkle offered $100 award for breaking singly - iterated knapsack Singly-iterated Merkle - Hellman KC was broken by.
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Creating Optimal Multi- Layer Perceptron Networks to play Go with a Genetic Algorithm a.k.a. big Name, Run long time By Nathan Erickson ECE539 Final Proj.
RNA Secondary Structure Prediction Spring Objectives  Can we predict the structure of an RNA?  Can we predict the structure of a protein?
StarCraft Learning Algorithms By Logan Yarnell, Steven Raines, and Dean Antel.
1 Self-stabilizing Algorithms and Frequency Assignment Problems.
September1999 CMSC 203 / 0201 Fall 2002 Week #8 – 14/16 October 2002 Prof. Marie desJardins.
Quiz Th. Oct. 20 Chapters 1,2,3,4. S B AD E C F G straight-line distances h(S-G)=10 h(A-G)=7 h(D-G)=1 h(F-G)=1 h(B-G)=10 h(E-G)=8 h(C-G)=20.
CPSC 320: Intermediate Algorithm Design & Analysis Greedy Algorithms and Graphs Steve Wolfman 1.
For Wednesday No reading No homework There will be homework for Friday, as well the program being due – plan ahead.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Umans Complexity Theory Lectures Lecture 7b: Randomization in Communication Complexity.
Lists Theory of Information. Lists  Imagine that you want to send a parcel to a friend that is secure and confidential…  How would you do it?
Vertex Coloring Distributed Algorithms for Multi-Agent Networks
PROBLEM-SOLVING TECHNIQUES Rocky K. C. Chang November 10, 2015.
Link Building and Communities in Large Networks Martin Olsen University of Aarhus Link Building Link Building is NP-Hard The dashed links show the set.
Learning to Play the Game of GO Lei Li Computer Science Department May 3, 2007.
Sporadic model building for efficiency enhancement of the hierarchical BOA Genetic Programming and Evolvable Machines (2008) 9: Martin Pelikan, Kumara.
1 Algorithms CSCI 235, Fall 2015 Lecture 39 Final Exam Review.
Introduction to NP Instructor: Neelima Gupta 1.
Polyhedral Optimization Lecture 5 – Part 3 M. Pawan Kumar Slides available online
1 Evaluation Function for Computer Go. 2 Game Objective Surrounding most area on the boardSurrounding most area on the board.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Senior Project Board Implementation of the Solution to the Conjugacy Problem in Thompson’s Group F by Nabil Hossain Advisers: James Belk & Robert McGrail.
Divide and Conquer. Problem Solution 4 Example.
Cheaters Gonna Cheat Battling Fake High Scores Nataly Eliyahu CASUAL CONNECT TEL AVIV 19 – 21 OCTOBER 2015.
速食業對台灣飲食文化的影響 第四組 報告順序:九.
Unit – 5: Backtracking For detail discussion, students are advised to refer the class discussion.
New Characterizations in Turnstile Streams with Applications
CS 460 Spring 2011 Lecture 4.
Lecture 22 Complexity and Reductions
Algorithms and Networks
AlphaGO from Google DeepMind in 2016, beat human grandmasters
CS200: Algorithm Analysis
Neural Networks for Vertex Covering
CSE 421 Richard Anderson Autumn 2016, Lecture 3
CS 583 Fall 2006 Analysis of Algorithms
CSE 421 Richard Anderson Autumn 2015, Lecture 3
CSE 421, University of Washington, Autumn 2006
15th Scandinavian Workshop on Algorithm Theory
Unit 10 Review Around the World.
CSE 421 Richard Anderson Autumn 2019, Lecture 3
Presentation transcript:

CodeVita Season III (2014 – 2015 Season)

CodeVita Questions Broadly speaking Three types of problems – {Simple, Medium, Complex} Questions of season III have following flavours String Manipulation Formula-based Algorithmic (Greedy, Genetic, Dynamic programming) Real-life Data Structures (Trees, Graphs, Bit Set etc.) Single-correct answer (most of the times), Verified Solvability (Space-time constraints)

Example of Simple Problem Bob’s List Find out students studying Physics and Maths Physics or Maths Physics but not Maths Students studying Physics Students studying Maths

Example of Simple Problem Stone Removal Ladies First - Alice always plays first Each player can remove only 1, 2 or 3 stones Assume optimal play by both sides For Generic N, where N is the # of stones, predict if Alice can win 2 2, 2 3, 1, 2 3, 1 3 Bob has to remove last stone. Hence Alice wins !!

Example of Medium Problem Break the Friendship During exams, friends cheat Two rooms are available for the exam Given a list of friends Create two groups of students such that no two friends are in the same group

Example of Medium Problem Online Communities - Connectivity People connect with each other in a social network. When two persons belonging to different communities connect, the net effect is merger of both communities which they belonged to In a constantly changing social graph, find out whether two persons are in a same group or not

Example of Complex problem Isotope Algorium=33 (56 * 61) mod 199 Codium=56 Programium=61 Energy = 3416 KJ (56 * 61) Developium=2 Energy = 66 KJ (33 * 2) Total energy produced = 3416 KJ + 66 KJ = 3492 KJ Testium=122 (61 * 2) mod 199 Programium=61 Developium=2 Energy = 122 KJ (61 * 2) Codium=56 Energy = 6832 KJ (56 * 122) Total energy produced = 122 KJ + 6832 KJ = 6954 KJ When 2 atoms fuse energy is released and a new atom is formed Only adjacent atoms can be fused Codium=56 Programium=61 Developium=2 Second solution is better because it maximizes energy produced

Example of Complex problem White To Move Number of moves possible for White = 20 Number of moves possible for White = 18 Always, White to Move Ignore Castling and En Passant rules of Chess Compute number of possible moves for white in any arbitrary board position