School of Computing and Information Technology. ASSIGNMENT 1 (Individual) CSCI 103 Algorithms and Problem Solving. Session 2, April - June 2017

Size: px
Start display at page:

Download "School of Computing and Information Technology. ASSIGNMENT 1 (Individual) CSCI 103 Algorithms and Problem Solving. Session 2, April - June 2017"

Transcription

1 ASSIGNMENT 1 (Individual) CSCI 103 Algorithms and Problem Solving Session 2, April - June 2017 UOW Moderator: Dr. Luping Zhou (lupingz@uow.edu.au) Lecturer: Mr. Chung Haur KOH (chkoh@uow.edu.au) Total Pages: Seven (7) inclusive of the cover page Total Marks: 10 marks Weightage: 10% of total subject mark Submission Date: 30 April 2017 Copyright SCIT,, 2017 Page 1 of 16

2 Objective In this assignment, students are required to apply the concepts of flowchart, pseudocode, and problem solving, sorting and searching. Flowchart and Pseudocode [2.0 marks] Question 1 (2.0 marks) (a) Alex, the owner of Excellent Tuition Centre, needs a program that his tutors can use to generate a summarized grade report for the subject the tutor teaches. The report is to contain the following information: Subject Title: Functions and graphs Tutor: Diane Miller Grade Number of students A 5 B 9 C 7 F 3 Write a pseudocode algorithm to read the title of the subject, the name of the tutor, and a list of integer values for score, one at a time. The list of integer values is terminated with a negative value. Your algorithm will need to determine the grade and accumulate the count of occurrences for each grade. The grading is done according to the following guideline: Score Grade 80 or more A Less than 80 but 65 or more B Less than 65 but 50 or more C Less than 50 F Suggested solution: (1.0 mark) BEGIN SummarizedGradeReport // Declaration and Initialization DEFINE subjecttitle DEFINE tutorname DEFINE score, counta, countb, countc, countf Copyright SCIT,, 2017 Page 2 of 16

3 // Display message and accept subject title DISPLAY Enter Subject Title: ACCEPT subjecttitle // Display message and accept tutor name DISPLAY Enter Tutor Name: ACCEPT tutorname // Display instruction to enter score DISPLAY Enter the score in integer one at a time. Enter negative score to terminate the process. // Start the loop REPEAT DISPLAY Enter score (negative score to terminate): ACCEPT score // Check score and accumulate the respective counters IF score >= 80 ACCUMULATE counta = counta + 1 ELSE IF score >= 65 ACCUMULATE countb = countb + 1 ELSE IF score >= 50 ACCUMULATE countc = countc + 1 ELSE IF score >= 0 ACCUMULATE countf = countf + 1 ELSE DO NOTHING END IF UNTIL score < 0 // Print the report DISPLAY Subject Title: + subjecttitle // display subject title DISPLAY Tutor: + tutorname // display tutor name DISPLAY // display blank line DISPLAY Grade Number of Student // display sub heading DISPLAY A + counta DISPLAY B + countb DISPLAY C + countc DISPLAY F + countf END SummarizedGradeReport Copyright SCIT,, 2017 Page 3 of 16

4 (b) AAA Packing Company wants a program that the order department can use to calculate and display the price of an order (price * unit). The order clerks will need to enter the number of units ordered, and whether the customer is a retailer or a wholesaler. The price per unit depends on both the customer type, that is wholesaler or retailer, and the number of units ordered, as follows: Wholesaler Retailer Number of units Price per unit ($) Number of units Price per unit ($) and over and over 12 If the customer type is entered incorrectly or the number of units ordered is invalid, the price per unit and the number of units ordered are set to 0. Draw a flowchart for the program requirement specified above. (1.0 mark) Copyright SCIT,, 2017 Page 4 of 16

5 Display priceoforder = priceperunit * numofunitorder Problem Solving and invariant [3.5 marks] Question 2 (0.5 mark) Robert is an intelligent robot and is able to solve problem if given appropriate instructions. Robert is five steps away from a box, and the box is 10 steps away from a chair, as shown below: 5 steps 10 steps Copyright SCIT,, 2017 Page 5 of 16

6 Create a series of instructions, using only the instructions shown below, that will help Robert to sit in the chair. Assume that Robert must jump over the box before he can continue toward the chair. Robert s instruction set: Instruction Stand Walk Sit Turn180 Turn90R Turn90L Jump Fly If reach an obstacle, do this: If reach a chair, do this: Otherwise, do this Repeat x times Repeat until you are directly in front of a chair Repeat until you are directly in front of a box Meaning Robert stands up from a sitting position Robert moves his right foot forward one step, then moves his left foot to meet his right foot Robert sits down Robert turns 180-degree Robert turns 90-degree to the right Robert turns 90-degree to the left Allows Robert to jump over anything in his path Allows Robert to fly over anything in his path) This instruction can be used only in combination with an if-instruction Repeat an action or action(s) x number of times Allows Robert to repeat an action or action(s) until he is in front of a chair Allows Robert to repeat an action or action(s) until he is in front of a box. (0.5 mark) Suggested answer: Copyright SCIT,, 2017 Page 6 of 16

7 Turn90L Repeat 5 times Walk Jump Repeat 10 times Walk Turn180 Sit Or Turn90L Repeat until you are directly in front of a box Walk Jump Repeat until you are directly in from of a chair Walk Turn180 Sit Question 3 (3.0 marks) There is a stack of cards numbered from 1 to 100 uniquely. Randomly choose 20 cards from the stack and put them into a bag. Each time, choose any two cards from the bag. If two odd numbered cards are taken out, put one odd numbered card into the bag. Similarly, if two even numbered cards are taken out, put one odd numbered card into the bag. If one odd and one even-numbered card are taken out, put back an even numbered card into the bag. Eventually, only one card is left inside the bag. (a) Let O, E and N be the number of Odd, Even, and Total cards in the bag. What is the effect on O, E and N after one time of choosing? You need to consider all possible scenario and you may express the effect using the variables O, E and N. (0.5 mark) Suggested solution: Let O be the number of Odd cards E be the number of Even cards N be the total number of cards; that it, N = O + E In a single loop, Case 1: If both cards chosen were Odd E = E // No change in the number of even card O = O 2 // 2 odd cards were drawn O = O + 1 // 1 odd card was put back to the bag N = N 1 // Total number of card is reduced by 1 Case 2: If both cards chosen were Even E = E 2 // 2 even cards were drawn O = O + 1 // 1 odd card was put into the bag Copyright SCIT,, 2017 Page 7 of 16

8 N = N 1 // Total number of card is reduced by 1 Case 3: If one card is Even and the other is Odd E = E // 1 even card was drawn, and 1 was put back O = O 1 // 1 odd card was drawn N = N 1 // Total number of card is reduced by 1 Analysing the above scenario, it is noted that each time cards are chosen, the number of even card (E) remains the same (Case 1 and Case 3) or is reduced by 2 (Case 2). In other words, the number of even card (E) changes by an even number. As for the number of odd card (O), each time cards are chosen, O is reduced by 1 (Case 1 and Case 3) or is increased by 1 (Case 2). In other words, the number of odd card (O) changes by an odd number. Finally, the total number of card in all cases (Case 1, Case 2, and Case 3) is reduced by 1, that is, N = N 1. (b) Based on your answer for part (i), what is the invariant? (1.0 mark) Suggested answer: Noted from Case 1, 2 and 3 described in (i), E = E 2 // E is reduced by 2 if both cards chosen were even (Case 2) E = E // E remains the same if both cards chosen were odd (Case 1) E = E // E remains the same if one of the cards is even and the other is odd // (Case 3) This means E remains the same or reduced by 2 each time cards are chosen. This mean the initial state (number of cards (E) is odd or even) of E remains the same. In other words, if initially, there are 10 even-numbered card, then each time after cards are chosen, the number of even-numbered card left is always even, that is, 8, 6, 4, 2, or 0. With the same reasoning, if the initial number of even-numbered card is odd, for example 9, then each time after cards are chosen, the number of even-numbered card left is always odd, that is, 7, 5, 3, or 1. Hence the invariant in the problem described above is that the initial state (number of cards is odd or even) of the number of evennumbered remains the same. (c) If the initial numbers of odd-numbered and even-numbered cards in the bag is known, can you predict the number of the last card in the bag? (1.0 mark) Suggested answer: Copyright SCIT,, 2017 Page 8 of 16

9 Yes, we can. It is noted that the number of even-numbered cards (E) change by an even number each time cards are chosen and the number of odd-numbered cards (O) change by either +1 or -1. Hence based on the initial number of even-numbered cards (E) and the invariant, we can determine the number of the last card remaining in the bag. Let E be the initial number of even-numbered card and e be the number of evennumbered cards currently in the bag. From the discussion (i) above, each time two cards are chosen from the bag, the total number of card (N) is reduced by1. Hence eventually, there will be only 1 card left in the bag. Starting with an odd number for E, each time after two cards are chosen from the bag, the number e is reduced by 2 or remains the same. Since invariant holds each time two cards are chosen from the bag, e remains an odd number. At the end, the number of cards left in the bag will be 1. Since 1 is odd, hence the number of the card left in the bag must be even-numbered card because the number of even-number card starts with an odd number. Starting with an even number for E, each time after two cards are chosen from the bag, the number e is reduced by 2 or remains the same. Since invariant holds each time two cards are chosen from the bag, e remains and even number. At the end, the number of cards left in the bag will be 1, and since 1 is odd, hence the number of the card left in the bag must be odd-numbered card because the number of even card starts with an even number and 1 is not an even number. In conclusion, the last card remaining in the bag is even-numbered card if the starting number of even-numbered card is an odd number; otherwise the last card remaining in the bag is odd-numbered card. (d) If there are N number of cards are put in the bag, where 2 <= N <= 50, after how many time of choosing will there be one card left? (0.5 mark) Suggested answer: Since each time after two cards are drawn from the bag, the total number of card (N) is reduced by 1. Hence after (N 1) number of times drawing the cards, there will be one card left in the bag. Copyright SCIT,, 2017 Page 9 of 16

10 Sorting and Searching [4.5 marks] Question 4: Sorting (3.0 marks) Eight numbers are stored in an array as shown below. Initial W =? C =? M =? Note: For this exercise, we will assume the following: To swap two numbers the operations involve: Val = A[i]; A[i] = A[j]; A[j] = Val; So, one swap operation is taken as a combined operations that involve 3 assignments operations and 4 indexing. In calculating the number of data movement (M), we will assume it is only one swap operation instead of 3 assignment operations. (a) Using first Insertion Sort, then Selection Sort to sort the eight numbers described above into ascending order. For each of the sorting algorithms, start the state of the numbers from the initial state described above. Trace through each pass of the sorting until the numbers are fully sorted in ascending order (with the smallest number stored at element with index 0.) For each pass, show the start state and specify value of W (wall index), C (the number of comparisons made in that pass), and M (the number of elements that are to be moved in that pass.) At the end of the sorting process, indicate what is the total number of comparisons and total number of data movements for both sorting algorithms. (1.0 mark) Insertion Sort: Initial PASS W = 0 Copyright SCIT,, 2017 Page 10 of 16

11 PASS PASS PASS PASS PASS PASS Final W = 1 W = 2 W = 3 W = 4 W = 5 W = W = 7 The total number of comparisons = sum of number of comparisons for each pass. The total number of comparisons = = 7 (i.e. N-1) Total number of data movement = sum of number of data movement for each pass. Total number of data movement = = 0. Selection Sort: Initial PASS W = 0 Copyright SCIT,, 2017 Page 11 of 16

12 PASS PASS PASS PASS PASS PASS Final C = 7 W = 1 C = 6 W = 2 C = 5 W = 3 C = 4 W = 4 C = 3 W = 5 C = 2 W = W = 7 The total number of comparisons = sum of number of comparisons for each pass. The total number of comparisons = = 28 (i.e. N(N-1) / 2) Total number of data movement = sum of number of data movement for each pass. Total number of data movement = = 0. (b) Repeat the task as described in Part (a) above, but this time, instead of sorting the eight numbers into ascending order, sort the eight numbers into descending order. Trace through each pass of the sorting until the numbers are fully sorted in descending order (with the largest number stored at element with index 0.) For each pass, show the start state and specify value of W (wall index), C (the number of comparisons made in that pass), and M (the number of elements that are to be moved in that pass.) At the end of the sorting process, indicate what is the total number Copyright SCIT,, 2017 Page 12 of 16

13 of comparisons and total number of data movements for both sorting algorithms. (1.0 mark) Insertion Sort: Initial PASS PASS PASS PASS PASS PASS PASS Final W = 0 M = 1 W = 1 C = 2 M = 2 W = 2 C = 3 M = 3 W = 3 C = 4 M = 4 W = 4 C = 5 M = 5 W = 5 C = 6 M = 6 W = 6 C = 7 M = W = 7 The total number of comparisons = sum of number of comparisons for each pass. The total number of comparisons = = 28 (i.e. N(N-1) / 2) Total number of data movement = sum of number of data movement for each pass. Total number of data movement = = 28 (i.e. N(N-1) / 2) Copyright SCIT,, 2017 Page 13 of 16

14 Selection Sort: Initial PASS PASS PASS PASS PASS PASS PASS Final W = 0 C = 7 M = 1 W = 1 C = 6 M = 1 W = 2 C = 5 M = 1 W = 3 C = 4 M = 1 W = 4 C = 3 W = 5 C = 2 W = W = 7 The total number of comparisons = sum of number of comparisons for each pass. The total number of comparisons = = 28 (i.e. N(N-1) / 2) Total number of data movement = sum of number of data movement for each pass. Total number of data movement = = 4 (i.e. N / 2) (c) From the results of C and M you obtained from Part (a) and (b), discuss on the running time complexity of the two sorting algorithms in term of the number of comparison (C) and the number of data movement (M) with respect to the order of the data (8 numbers) in the initial state. (1.0 mark) Copyright SCIT,, 2017 Page 14 of 16

15 Suggested answer: The 8 numbers used in this question are initially already in ascending order. This leads to two scenarios for discussions best-case scenario and worst-case scenario. Best-case scenario: Insertion sort Number of comparisons (C) = 7 Number of data movement (M) = 0 Selection sort Number of comparisons (C) = 28 Number of data movement (M) = 0 For insertion sort, the total number of comparisons (C) equals (N-1). The algorithm compares (n-1) data and since the data are already in correct order, there is no swapping (data movement) needed. For selection sort, the total number of comparisons (C) equals N*(N-1). The algorithm compares N*(N-1) times of the data to determine the largest or the smallest data. Even though the data are already in correct order, the algorithm will still do the comparisons. Since the data are already in correct order, there is no swapping (data movement) needed. Worst-case scenario: Insertion sort Number of comparisons (C) = 28 Number of data movement (M) = 28 Selection sort Number of comparisons (C) = 28 Number of data movement (M) = 4 For insertion sort, the total number of comparisons (C) equals N*(N-1). In each pass, the algorithm compares (N-1) data that are already in sorted order to search for a correct location to insert the next data. There are altogether N data, hence N*(N-1) time of comparisons. Since the data are in reverse order (worst-case), every data comparison, required one data swapping (data movement) to provide a correct position for the next data to be inserted. Hence the total number of data movement is N*(N-1). For selection sort, the total number of comparisons (C) equals N*(N-1) because the algorithm compares N*(N-1) times of the data to determine the largest or the smallest data. Once the largest or the smallest data is obtained, the data is swapped with the current wall position data. Since the data are in total reverse order (worstcase), mid through the sorting, the data will be resulted in correct order, hence half of the data do not need to be swapped. The number of data movement is then N/2. Copyright SCIT,, 2017 Page 15 of 16

16 Question 5: Searching (1.5 marks) Given a list of sorted data: 1, 7, 11, 18, 23, 27, and 51 stored in an array. Perform a binary search on the data to find the values 23 and 3. clearly the values of first, mid, last, and the comparison made for each step. Take note that first, mid and last are numbers that represent array indices. (1.5 mark) Suggested answer: First Mid Last Comparison with target [0] = 1 [3] = 18 [6] = > 18 [3+1] = 23 [5] = 27 [6] = < 27 [4] = 23 [4] = 23 [5-1] = = 23 (found) first 1, mid 18, last > 18 first 23, mid 27, last < 27 first 23, mid 23, last == 23 target found First Mid Last Comparison with target [0] = 1 [3] = 18 [6] = 51 3 < 18 [0] = 1 [1] = 7 [3-1] = 11 3 < 7 [0] = 1 [0] = 1 [1-1] = 1 3 > 1 [First] = [Mid] = [Last] (cannot be found) [0+1] = 7 [0] = 1 [First] > [Last] (not found) first 1 mid 18, last 51 3 < 18 first - 1, mid- 7, last 11 3 < 7 first 1, mid 1, last 1 3 > 1 3 cannot be found. Copyright SCIT,, 2017 Page 16 of 16

CPSC 217 Assignment 3

CPSC 217 Assignment 3 CPSC 217 Assignment 3 Due: Friday November 24, 2017 at 11:55pm Weight: 7% Sample Solution Length: Less than 100 lines, including blank lines and some comments (not including the provided code) Individual

More information

LEVEL I. 3. In how many ways 4 identical white balls and 6 identical black balls be arranged in a row so that no two white balls are together?

LEVEL I. 3. In how many ways 4 identical white balls and 6 identical black balls be arranged in a row so that no two white balls are together? LEVEL I 1. Three numbers are chosen from 1,, 3..., n. In how many ways can the numbers be chosen such that either maximum of these numbers is s or minimum of these numbers is r (r < s)?. Six candidates

More information

Arrays. Independent Part. Contents. Programming with Java Module 3. 1 Bowling Introduction Task Intermediate steps...

Arrays. Independent Part. Contents. Programming with Java Module 3. 1 Bowling Introduction Task Intermediate steps... Programming with Java Module 3 Arrays Independent Part Contents 1 Bowling 3 1.1 Introduction................................. 3 1.2 Task...................................... 3 1.3 Intermediate steps.............................

More information

1 KNOWING OUR NUMBERS

1 KNOWING OUR NUMBERS 1 KNOWING OUR NUMBERS Q.1. Fill in the blanks : (a) 1 lakh Exercise 1.1 = ten thousand. (b) 1 million = hundred thousand. (c) 1 crore (d) 1 crore = ten lakh. = million. (e) 1 million = lakh. Ans. (a) 10

More information

Homework Assignment #1

Homework Assignment #1 CS 540-2: Introduction to Artificial Intelligence Homework Assignment #1 Assigned: Thursday, February 1, 2018 Due: Sunday, February 11, 2018 Hand-in Instructions: This homework assignment includes two

More information

CS256 Applied Theory of Computation

CS256 Applied Theory of Computation CS256 Applied Theory of Computation Parallel Computation III John E Savage Overview Mapping normal algorithms to meshes Shuffle operations on linear arrays Shuffle operations on two-dimensional arrays

More information

((( ))) CS 19: Discrete Mathematics. Please feel free to ask questions! Getting into the mood. Pancakes With A Problem!

((( ))) CS 19: Discrete Mathematics. Please feel free to ask questions! Getting into the mood. Pancakes With A Problem! CS : Discrete Mathematics Professor Amit Chakrabarti Please feel free to ask questions! ((( ))) Teaching Assistants Chien-Chung Huang David Blinn http://www.cs cs.dartmouth.edu/~cs Getting into the mood

More information

Olympiad Combinatorics. Pranav A. Sriram

Olympiad Combinatorics. Pranav A. Sriram Olympiad Combinatorics Pranav A. Sriram August 2014 Chapter 2: Algorithms - Part II 1 Copyright notices All USAMO and USA Team Selection Test problems in this chapter are copyrighted by the Mathematical

More information

CSc 110, Spring Lecture 40: Sorting Adapted from slides by Marty Stepp and Stuart Reges

CSc 110, Spring Lecture 40: Sorting Adapted from slides by Marty Stepp and Stuart Reges CSc 110, Spring 2017 Lecture 40: Sorting Adapted from slides by Marty Stepp and Stuart Reges 1 Searching How many items are examined worse case for sequential search? How many items are examined worst

More information

Answer keys to the assessment tasks 61 Answer keys to the challenge questions 63 Achievement Profile 64

Answer keys to the assessment tasks 61 Answer keys to the challenge questions 63 Achievement Profile 64 Contents page Introduction 4 1. Odd and even numbers 5 Assessment task 1 8 2. Counting techniques: Consecutive numbers 9 3. Counting techniques: How many digits? 11 Assessment task 2 13 4. Number chains

More information

Coding for Efficiency

Coding for Efficiency Let s suppose that, over some channel, we want to transmit text containing only 4 symbols, a, b, c, and d. Further, let s suppose they have a probability of occurrence in any block of text we send as follows

More information

CS3334 Data Structures Lecture 4: Bubble Sort & Insertion Sort. Chee Wei Tan

CS3334 Data Structures Lecture 4: Bubble Sort & Insertion Sort. Chee Wei Tan CS3334 Data Structures Lecture 4: Bubble Sort & Insertion Sort Chee Wei Tan Sorting Since Time Immemorial Plimpton 322 Tablet: Sorted Pythagorean Triples https://www.maa.org/sites/default/files/pdf/news/monthly105-120.pdf

More information

Count in multiples of 6, 7, and Find 1000 more or less than a given number.

Count in multiples of 6, 7, and Find 1000 more or less than a given number. Roman numerals to 100 Round to the nearest 10 Round to the nearest 100 Count in 1,000s 1,000s, 100s, 10s and 1s Partitioning Number line to 10,000 1,000 more or less Compare numbers Order numbers Round

More information

Junior Circle Games with coins and chessboards

Junior Circle Games with coins and chessboards Junior Circle Games with coins and chessboards 1. a.) There are 4 coins in a row. Let s number them 1 through 4. You are allowed to switch any two coins that have a coin between them. (For example, you

More information

STUDENT'S BOOKLET. Shapes, Bees and Balloons. Meeting 20 Student s Booklet. Contents. April 27 UCI

STUDENT'S BOOKLET. Shapes, Bees and Balloons. Meeting 20 Student s Booklet. Contents. April 27 UCI Meeting 20 Student s Booklet Shapes, Bees and Balloons April 27 2016 @ UCI Contents 1 A Shapes Experiment 2 Trinities 3 Balloons 4 Two bees and a very hungry caterpillar STUDENT'S BOOKLET UC IRVINE MATH

More information

Roll & Make. Represent It a Different Way. Show Your Number as a Number Bond. Show Your Number on a Number Line. Show Your Number as a Strip Diagram

Roll & Make. Represent It a Different Way. Show Your Number as a Number Bond. Show Your Number on a Number Line. Show Your Number as a Strip Diagram Roll & Make My In Picture Form In Word Form In Expanded Form With Money Represent It a Different Way Make a Comparison Statement with a Greater than Your Make a Comparison Statement with a Less than Your

More information

The Game of Hog. Scott Lee

The Game of Hog. Scott Lee The Game of Hog Scott Lee The Game 100 The Game 100 The Game 100 The Game 100 The Game Pig Out: If any of the dice outcomes is a 1, the current player's score for the turn is the number of 1's rolled.

More information

Foundations of Computing Discrete Mathematics Solutions to exercises for week 12

Foundations of Computing Discrete Mathematics Solutions to exercises for week 12 Foundations of Computing Discrete Mathematics Solutions to exercises for week 12 Agata Murawska (agmu@itu.dk) November 13, 2013 Exercise (6.1.2). A multiple-choice test contains 10 questions. There are

More information

CPCS 222 Discrete Structures I Counting

CPCS 222 Discrete Structures I Counting King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222 Discrete Structures I Counting Dr. Eng. Farag Elnagahy farahelnagahy@hotmail.com Office Phone: 67967 The Basics of counting

More information

A Level Computer Science H446/02 Algorithms and programming. Practice paper - Set 1. Time allowed: 2 hours 30 minutes

A Level Computer Science H446/02 Algorithms and programming. Practice paper - Set 1. Time allowed: 2 hours 30 minutes A Level Computer Science H446/02 Algorithms and programming Practice paper - Set 1 Time allowed: 2 hours 30 minutes Do not use: a calculator First name Last name Centre number Candidate number INSTRUCTIONS

More information

Divide & conquer. Which works better for multi-cores: insertion sort or merge sort? Why?

Divide & conquer. Which works better for multi-cores: insertion sort or merge sort? Why? 1 Sorting... more 2 Divide & conquer Which works better for multi-cores: insertion sort or merge sort? Why? 3 Divide & conquer Which works better for multi-cores: insertion sort or merge sort? Why? Merge

More information

Kangaroo 2017 Benjamin (6th and 7th grade)

Kangaroo 2017 Benjamin (6th and 7th grade) sivu 1 / 8 NAME CLASS Points: Kangaroo leap: Separate this answer sheet from the test. Write your answer under each problem number. For each right answer you get 3, 4, or 5 points. There is exactly one

More information

Techniques for Generating Sudoku Instances

Techniques for Generating Sudoku Instances Chapter Techniques for Generating Sudoku Instances Overview Sudoku puzzles become worldwide popular among many players in different intellectual levels. In this chapter, we are going to discuss different

More information

B1 Problem Statement Unit Pricing

B1 Problem Statement Unit Pricing B1 Problem Statement Unit Pricing Determine the best buy (the lowest per unit cost) between two items. The inputs will be the weight in ounces and the cost in dollars. Display whether the first or the

More information

Acing Math (One Deck At A Time!): A Collection of Math Games. Table of Contents

Acing Math (One Deck At A Time!): A Collection of Math Games. Table of Contents Table of Contents Introduction to Acing Math page 5 Card Sort (Grades K - 3) page 8 Greater or Less Than (Grades K - 3) page 9 Number Battle (Grades K - 3) page 10 Place Value Number Battle (Grades 1-6)

More information

Reading and Understanding Whole Numbers

Reading and Understanding Whole Numbers E Student Book Reading and Understanding Whole Numbers Thousands 1 Hundreds Tens 1 Units Name Series E Reading and Understanding Whole Numbers Contents Topic 1 Looking at whole numbers (pp. 1 8) reading

More information

Sorting. Suppose behind each door (indicated below) there are numbers placed in a random order and I ask you to find the number 41.

Sorting. Suppose behind each door (indicated below) there are numbers placed in a random order and I ask you to find the number 41. Sorting Suppose behind each door (indicated below) there are numbers placed in a random order and I ask you to find the number 41. Door #1 Door #2 Door #3 Door #4 Door #5 Door #6 Door #7 Is there an optimal

More information

1. A factory makes calculators. Over a long period, 2 % of them are found to be faulty. A random sample of 100 calculators is tested.

1. A factory makes calculators. Over a long period, 2 % of them are found to be faulty. A random sample of 100 calculators is tested. 1. A factory makes calculators. Over a long period, 2 % of them are found to be faulty. A random sample of 0 calculators is tested. Write down the expected number of faulty calculators in the sample. Find

More information

Updated October 2017

Updated October 2017 Updated October 2017 Roman numerals to 100 Round to the nearest 10 Round to the nearest 100 Count in 1,000s 1,000s, 100s, 10s and 1s Partitioning Number line to 10,000 1,000 more or less Compare numbers

More information

MA/CSSE 473 Day 13. Student Questions. Permutation Generation. HW 6 due Monday, HW 7 next Thursday, Tuesday s exam. Permutation generation

MA/CSSE 473 Day 13. Student Questions. Permutation Generation. HW 6 due Monday, HW 7 next Thursday, Tuesday s exam. Permutation generation MA/CSSE 473 Day 13 Permutation Generation MA/CSSE 473 Day 13 HW 6 due Monday, HW 7 next Thursday, Student Questions Tuesday s exam Permutation generation 1 Exam 1 If you want additional practice problems

More information

Chapter 7: Sorting 7.1. Original

Chapter 7: Sorting 7.1. Original Chapter 7: Sorting 7.1 Original 3 1 4 1 5 9 2 6 5 after P=2 1 3 4 1 5 9 2 6 5 after P=3 1 3 4 1 5 9 2 6 5 after P=4 1 1 3 4 5 9 2 6 5 after P=5 1 1 3 4 5 9 2 6 5 after P=6 1 1 3 4 5 9 2 6 5 after P=7 1

More information

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170 2015-2016 Mathematics Competition Practice Session 6 Hagerstown Community College: STEM Club November 20, 2015 12:00 pm - 1:00 pm STC-170 1 Warm-Up (2006 AMC 10B No. 17): Bob and Alice each have a bag

More information

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS International General Certificate of Secondary Education. Paper 1 May/June hours 30 minutes

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS International General Certificate of Secondary Education. Paper 1 May/June hours 30 minutes www.xtremepapers.com UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS International General Certificate of Secondary Education *4670938493* COMPUTER STUDIES 0420/11 Paper 1 May/June 2012 2 hours 30 minutes

More information

HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm.

HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm. HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm. 1. Background: Pig is a folk jeopardy dice game described by John Scarne in 1945, and was

More information

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6 CS100: DISCRETE STRUCTURES Lecture 8 Counting - CH6 Lecture Overview 2 6.1 The Basics of Counting: THE PRODUCT RULE THE SUM RULE THE SUBTRACTION RULE THE DIVISION RULE 6.2 The Pigeonhole Principle. 6.3

More information

Introduction to Counting and Probability

Introduction to Counting and Probability Randolph High School Math League 2013-2014 Page 1 If chance will have me king, why, chance may crown me. Shakespeare, Macbeth, Act I, Scene 3 1 Introduction Introduction to Counting and Probability Counting

More information

Module 3 Greedy Strategy

Module 3 Greedy Strategy Module 3 Greedy Strategy Dr. Natarajan Meghanathan Professor of Computer Science Jackson State University Jackson, MS 39217 E-mail: natarajan.meghanathan@jsums.edu Introduction to Greedy Technique Main

More information

Algorithms and Data Structures CS 372. The Sorting Problem. Insertion Sort - Summary. Merge Sort. Input: Output:

Algorithms and Data Structures CS 372. The Sorting Problem. Insertion Sort - Summary. Merge Sort. Input: Output: Algorithms and Data Structures CS Merge Sort (Based on slides by M. Nicolescu) The Sorting Problem Input: A sequence of n numbers a, a,..., a n Output: A permutation (reordering) a, a,..., a n of the input

More information

Discrete Mathematics: Logic. Discrete Mathematics: Lecture 15: Counting

Discrete Mathematics: Logic. Discrete Mathematics: Lecture 15: Counting Discrete Mathematics: Logic Discrete Mathematics: Lecture 15: Counting counting combinatorics: the study of the number of ways to put things together into various combinations basic counting principles

More information

NUMERATION AND NUMBER PROPERTIES

NUMERATION AND NUMBER PROPERTIES Section 1 NUMERATION AND NUMBER PROPERTIES Objective 1 Order three or more whole numbers up to ten thousands. Discussion To be able to compare three or more whole numbers in the thousands or ten thousands

More information

PROBLEM SET 2 Due: Friday, September 28. Reading: CLRS Chapter 5 & Appendix C; CLR Sections 6.1, 6.2, 6.3, & 6.6;

PROBLEM SET 2 Due: Friday, September 28. Reading: CLRS Chapter 5 & Appendix C; CLR Sections 6.1, 6.2, 6.3, & 6.6; CS231 Algorithms Handout #8 Prof Lyn Turbak September 21, 2001 Wellesley College PROBLEM SET 2 Due: Friday, September 28 Reading: CLRS Chapter 5 & Appendix C; CLR Sections 6.1, 6.2, 6.3, & 6.6; Suggested

More information

Documentation and Discussion

Documentation and Discussion 1 of 9 11/7/2007 1:21 AM ASSIGNMENT 2 SUBJECT CODE: CS 6300 SUBJECT: ARTIFICIAL INTELLIGENCE LEENA KORA EMAIL:leenak@cs.utah.edu Unid: u0527667 TEEKO GAME IMPLEMENTATION Documentation and Discussion 1.

More information

Class 6 CHAPTER 1 KNOWING OUR NUMBERS

Class 6 CHAPTER 1 KNOWING OUR NUMBERS INTRODUCTORY QUESTIONS: Ques.1 What are the Natural Numbers? Class 6 CHAPTER 1 KNOWING OUR NUMBERS Ans. When we begin to court the numbers 1,2,3,4,5,. Come naturally. Hence, these are called Natural Numbers.

More information

Problem A. Worst Locations

Problem A. Worst Locations Problem A Worst Locations Two pandas A and B like each other. They have been placed in a bamboo jungle (which can be seen as a perfect binary tree graph of 2 N -1 vertices and 2 N -2 edges whose leaves

More information

Module 3 Greedy Strategy

Module 3 Greedy Strategy Module 3 Greedy Strategy Dr. Natarajan Meghanathan Professor of Computer Science Jackson State University Jackson, MS 39217 E-mail: natarajan.meghanathan@jsums.edu Introduction to Greedy Technique Main

More information

NS2-45 Skip Counting Pages 1-8

NS2-45 Skip Counting Pages 1-8 NS2-45 Skip Counting Pages 1-8 Goals Students will skip count by 2s, 5s, or 10s from 0 to 100, and back from 100 to 0. Students will skip count by 5s starting at multiples of 5, and by 2s or 10s starting

More information

ECE 242 Data Structures and Algorithms. Simple Sorting II. Lecture 5. Prof.

ECE 242 Data Structures and Algorithms.  Simple Sorting II. Lecture 5. Prof. ECE 242 Data Structures and Algorithms http://www.ecs.umass.edu/~polizzi/teaching/ece242/ Simple Sorting II Lecture 5 Prof. Eric Polizzi Summary previous lecture 1 Bubble Sort 2 Selection Sort 3 Insertion

More information

Indiana K-12 Computer Science Standards

Indiana K-12 Computer Science Standards Indiana K-12 Computer Science Standards What is Computer Science? Computer science is the study of computers and algorithmic processes, including their principles, their hardware and software designs,

More information

MATHEMATICS ON THE CHESSBOARD

MATHEMATICS ON THE CHESSBOARD MATHEMATICS ON THE CHESSBOARD Problem 1. Consider a 8 8 chessboard and remove two diametrically opposite corner unit squares. Is it possible to cover (without overlapping) the remaining 62 unit squares

More information

LEADERS PRIVATE SCHOOL, SHARJAH

LEADERS PRIVATE SCHOOL, SHARJAH LEADERS PRIVATE SCHOOL, SHARJAH REVISION WORKSHEET FOR SA I (206-7) GRADE VI (MATH) LEVEL :. 00 million = Crores 2. 50 lakhs in Indian system is equivalent to. in International system.. How many thousands

More information

SMS Dictionary. Solution hint. Input format. Output format. (Indian National Olympiad in Informatics, INOI, 2007)

SMS Dictionary. Solution hint. Input format. Output format. (Indian National Olympiad in Informatics, INOI, 2007) SMS Dictionary (Indian National Olympiad in Informatics, INOI, 2007) In the pre-smartphone era, most mobile phones with numeric keypads had a private dictionary of words to allow users to type messages

More information

Randomized Algorithms

Randomized Algorithms Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 Randomized Algorithms Randomized Algorithms 1 Applications: Simple Algorithms and

More information

Math is Cool Masters

Math is Cool Masters Sponsored by: Algebra II January 6, 008 Individual Contest Tear this sheet off and fill out top of answer sheet on following page prior to the start of the test. GENERAL INSTRUCTIONS applying to all tests:

More information

FACTORS, PRIME NUMBERS, H.C.F. AND L.C.M.

FACTORS, PRIME NUMBERS, H.C.F. AND L.C.M. Mathematics Revision Guides Factors, Prime Numbers, H.C.F. and L.C.M. Page 1 of 17 M.K. HOME TUITION Mathematics Revision Guides Level: GCSE Higher Tier FACTORS, PRIME NUMBERS, H.C.F. AND L.C.M. Version:

More information

In the game of Chess a queen can move any number of spaces in any linear direction: horizontally, vertically, or along a diagonal.

In the game of Chess a queen can move any number of spaces in any linear direction: horizontally, vertically, or along a diagonal. CMPS 12A Introduction to Programming Winter 2013 Programming Assignment 5 In this assignment you will write a java program finds all solutions to the n-queens problem, for 1 n 13. Begin by reading the

More information

Search then involves moving from state-to-state in the problem space to find a goal (or to terminate without finding a goal).

Search then involves moving from state-to-state in the problem space to find a goal (or to terminate without finding a goal). Search Can often solve a problem using search. Two requirements to use search: Goal Formulation. Need goals to limit search and allow termination. Problem formulation. Compact representation of problem

More information

In how many ways can we paint 6 rooms, choosing from 15 available colors? What if we want all rooms painted with different colors?

In how many ways can we paint 6 rooms, choosing from 15 available colors? What if we want all rooms painted with different colors? What can we count? In how many ways can we paint 6 rooms, choosing from 15 available colors? What if we want all rooms painted with different colors? In how many different ways 10 books can be arranged

More information

MITOCW R7. Comparison Sort, Counting and Radix Sort

MITOCW R7. Comparison Sort, Counting and Radix Sort MITOCW R7. Comparison Sort, Counting and Radix Sort The following content is provided under a Creative Commons license. B support will help MIT OpenCourseWare continue to offer high quality educational

More information

Lecture 20: Combinatorial Search (1997) Steven Skiena. skiena

Lecture 20: Combinatorial Search (1997) Steven Skiena.   skiena Lecture 20: Combinatorial Search (1997) Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Give an O(n lg k)-time algorithm

More information

CADET SAMPLE QUESTIONS

CADET SAMPLE QUESTIONS CADET SAMPLE QUESTIONS www.beaver.my 01 Necklace (Easy) Beaver Pam made a necklace for herself. Now that it's finished, she's not sure that it will fit around her neck. The numbers tell the lengths of

More information

CS Programming Project 1

CS Programming Project 1 CS 340 - Programming Project 1 Card Game: Kings in the Corner Due: 11:59 pm on Thursday 1/31/2013 For this assignment, you are to implement the card game of Kings Corner. We will use the website as http://www.pagat.com/domino/kingscorners.html

More information

Table of Contents. Table of Contents 1

Table of Contents. Table of Contents 1 Table of Contents 1) The Factor Game a) Investigation b) Rules c) Game Boards d) Game Table- Possible First Moves 2) Toying with Tiles a) Introduction b) Tiles 1-10 c) Tiles 11-16 d) Tiles 17-20 e) Tiles

More information

Section 1: Whole Numbers

Section 1: Whole Numbers Grade 6 Play! Mathematics Answer Book 67 Section : Whole Numbers Question Value and Place Value of 7-digit Numbers TERM 2. Study: a) million 000 000 A million has 6 zeros. b) million 00 00 therefore million

More information

Below is a implementation in Python of the imprtant algorithms of Chapter 6 of Discrete Mathematics by G. Chartrand and P. Zhang.

Below is a implementation in Python of the imprtant algorithms of Chapter 6 of Discrete Mathematics by G. Chartrand and P. Zhang. MTH 182 Spring 2018 Below is a implementation in Python 3.6.2 of the imprtant algorithms of Chapter 6 of Discrete Mathematics by G. Chartrand and P. Zhang. by Adam O. Hausknecht V8 Spring 2018 The following

More information

Math 205 Test 2 Key. 1. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded

Math 205 Test 2 Key. 1. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded Math 20 Test 2 Key Instructions. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded. 2. Please begin each section of questions on a new sheet of paper. 3. Please

More information

Computer Architecture Laboratory

Computer Architecture Laboratory 304-487 Computer rchitecture Laboratory ssignment #2: Harmonic Frequency ynthesizer and FK Modulator Introduction In this assignment, you are going to implement two designs in VHDL. The first design involves

More information

Exercise 2. Point-to-Point Programs EXERCISE OBJECTIVE

Exercise 2. Point-to-Point Programs EXERCISE OBJECTIVE Exercise 2 Point-to-Point Programs EXERCISE OBJECTIVE In this exercise, you will learn various important terms used in the robotics field. You will also be introduced to position and control points, and

More information

Free GK Alerts- JOIN OnlineGK to NUMBERS IMPORTANT FACTS AND FORMULA

Free GK Alerts- JOIN OnlineGK to NUMBERS IMPORTANT FACTS AND FORMULA Free GK Alerts- JOIN OnlineGK to 9870807070 1. NUMBERS IMPORTANT FACTS AND FORMULA I..Numeral : In Hindu Arabic system, we use ten symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 called digits to represent any number.

More information

Cross Out Singles. 3. Players then find the sums of the rows, columns, and diagonal, and record them in the respective circles.

Cross Out Singles. 3. Players then find the sums of the rows, columns, and diagonal, and record them in the respective circles. Materials: Cross Out Singles recording sheet, and 1 die. Cross Out Singles How To Play: 1. The die is rolled. Both players put this number in whichever one of the squares on their Round 1 chart they choose.

More information

JINX - 2 Players / 15 Minutes

JINX - 2 Players / 15 Minutes JINX - 2 Players / 15 Minutes Players are witches who combine secret ingredients to make big and powerful potions. Each witch will contribute one of the ingredients needed to make a potion. If they can

More information

Lesson 4: Calculating Probabilities for Chance Experiments with Equally Likely Outcomes

Lesson 4: Calculating Probabilities for Chance Experiments with Equally Likely Outcomes NYS COMMON CORE MAEMAICS CURRICULUM 7 : Calculating Probabilities for Chance Experiments with Equally Likely Classwork Examples: heoretical Probability In a previous lesson, you saw that to find an estimate

More information

Reading and Understanding Whole Numbers

Reading and Understanding Whole Numbers Reading and Understanding Whole Numbers Student Book Series D Mathletics Instant Workbooks Copyright Contents Series D Reading and Understanding Whole Numbers Topic Looking at whole numbers reading and

More information

Second Annual University of Oregon Programming Contest, 1998

Second Annual University of Oregon Programming Contest, 1998 A Magic Magic Squares A magic square of order n is an arrangement of the n natural numbers 1,...,n in a square array such that the sums of the entries in each row, column, and each of the two diagonals

More information

CONNECT: Divisibility

CONNECT: Divisibility CONNECT: Divisibility If a number can be exactly divided by a second number, with no remainder, then we say that the first number is divisible by the second number. For example, 6 can be divided by 3 so

More information

Algorithmic Thinking. 17/05/2016 Mike Clapper - Executive Director AMT

Algorithmic Thinking. 17/05/2016 Mike Clapper - Executive Director AMT Algorithmic Thinking Structure of Session hat is an algorithm? hy is it important to promote algorithmic thinking in the mathematics classroom? Constructing some simple algorithms. Checking and testing

More information

CS 210 Fundamentals of Programming I Fall 2015 Programming Project 8

CS 210 Fundamentals of Programming I Fall 2015 Programming Project 8 CS 210 Fundamentals of Programming I Fall 2015 Programming Project 8 40 points Out: November 17, 2015 Due: December 3, 2015 (Thursday after Thanksgiving break) Problem Statement Many people like to visit

More information

The Problem. Tom Davis December 19, 2016

The Problem. Tom Davis  December 19, 2016 The 1 2 3 4 Problem Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles December 19, 2016 Abstract The first paragraph in the main part of this article poses a problem that can be approached

More information

Analyzing Games: Solutions

Analyzing Games: Solutions Writing Proofs Misha Lavrov Analyzing Games: olutions Western PA ARML Practice March 13, 2016 Here are some key ideas that show up in these problems. You may gain some understanding of them by reading

More information

CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18

CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18 CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2 Assigned: Monday, February 6 Due: Saturday, February 18 Hand-In Instructions This assignment includes written problems and programming

More information

Lesson 4: Calculating Probabilities for Chance Experiments with Equally Likely Outcomes

Lesson 4: Calculating Probabilities for Chance Experiments with Equally Likely Outcomes Lesson : Calculating Probabilities for Chance Experiments with Equally Likely Outcomes Classwork Example : heoretical Probability In a previous lesson, you saw that to find an estimate of the probability

More information

December 2017 USACO Bronze/Silver Review

December 2017 USACO Bronze/Silver Review December 2017 USACO Bronze/Silver Review Mihir Patel January 12, 2018 1 Bronze - Blocked Billboard 1.1 Problem During long milking sessions, Bessie the cow likes to stare out the window of her barn at

More information

Special Notice. Rules. Weiß Schwarz (English Edition) Comprehensive Rules ver. 2.01b Last updated: June 12, Outline of the Game

Special Notice. Rules. Weiß Schwarz (English Edition) Comprehensive Rules ver. 2.01b Last updated: June 12, Outline of the Game Weiß Schwarz (English Edition) Comprehensive Rules ver. 2.01b Last updated: June 12, 2018 Contents Page 1. Outline of the Game... 1 2. Characteristics of a Card... 2 3. Zones of the Game... 4 4. Basic

More information

Essentials. Week by. Week. Seeing Math. Fun with Multiplication

Essentials. Week by. Week. Seeing Math. Fun with Multiplication Week by Week MATHEMATICS Essentials Grade WEEK = 9 Fun with Multiplication JANUARY S M T W T F S 7 9 0 7 9 0 7 9 0 A rectangle of dates is boxed. Write the multiplication fact for this array. (.0a) Writing

More information

Is muddled about the correspondence between multiplication and division facts, recording, for example: 3 5 = 15, so 5 15 = 3

Is muddled about the correspondence between multiplication and division facts, recording, for example: 3 5 = 15, so 5 15 = 3 Is muddled about the correspondence between multiplication and division facts, recording, for example: 3 5 = 15, so 5 15 = 3 Opportunity for: recognising relationships Resources Board with space for four

More information

SUMMER MATH-LETES. Math for the Fun of It!

SUMMER MATH-LETES. Math for the Fun of It! SUMMER MATH-LETES Math for the Fun of It! During this busy summer take some time to experience math! Here are some suggested activities for you to try during vacation. Also, take advantage of opportunities

More information

6th Grade. Factors and Multiple.

6th Grade. Factors and Multiple. 1 6th Grade Factors and Multiple 2015 10 20 www.njctl.org 2 Factors and Multiples Click on the topic to go to that section Even and Odd Numbers Divisibility Rules for 3 & 9 Greatest Common Factor Least

More information

HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm.

HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm. HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm. 1. Background: Pig is a folk jeopardy dice game described by John Scarne in 1945, and was an

More information

Integers. Chapter Introduction

Integers. Chapter Introduction Integers Chapter 6 6.1 Introduction Sunita s mother has 8 bananas. Sunita has to go for a picnic with her friends. She wants to carry 10 bananas with her. Can her mother give 10 bananas to her? She does

More information

Gilbert Peterson and Diane J. Cook University of Texas at Arlington Box 19015, Arlington, TX

Gilbert Peterson and Diane J. Cook University of Texas at Arlington Box 19015, Arlington, TX DFA Learning of Opponent Strategies Gilbert Peterson and Diane J. Cook University of Texas at Arlington Box 19015, Arlington, TX 76019-0015 Email: {gpeterso,cook}@cse.uta.edu Abstract This work studies

More information

M14/4/COMSC/HP1/ENG/TZ0/XX. Computer science. Paper 1. Friday 16 May 2014 (afternoon) 2 hours 10 minutes INSTRUCTIONS TO CANDIDATES

M14/4/COMSC/HP1/ENG/TZ0/XX. Computer science. Paper 1. Friday 16 May 2014 (afternoon) 2 hours 10 minutes INSTRUCTIONS TO CANDIDATES M14/4/COMSC/HP1/ENG/TZ0/XX 22147011 Computer science HIGHER level Paper 1 Friday 16 May 2014 (afternoon) 2 hours 10 minutes INSTRUCTIONS TO CANDIDATES Do not open this examination paper until instructed

More information

For Everyone Using dominoes to practice math, problem solve, and discover relationships between numbers.

For Everyone Using dominoes to practice math, problem solve, and discover relationships between numbers. For Everyone Using dominoes to practice math, problem solve, and discover relationships between numbers. The original purchaser of this document is granted permission to copy for teaching purposes only.

More information

Math Circles 9 / 10 Contest Preparation I

Math Circles 9 / 10 Contest Preparation I Math Circles 9 / 10 Contest Preparation I Centre for Education in Mathematics and Computing CEMC www.cemc.uwaterloo.ca February 4, 2015 Agenda 1 Warm-up Problem 2 Contest Information 3 Contest Format 4

More information

UTD Programming Contest for High School Students April 1st, 2017

UTD Programming Contest for High School Students April 1st, 2017 UTD Programming Contest for High School Students April 1st, 2017 Time Allowed: three hours. Each team must use only one computer - one of UTD s in the main lab. Answer the questions in any order. Use only

More information

MATH GAMES THAT SUPPORT SINGAPORE MATH GRADES

MATH GAMES THAT SUPPORT SINGAPORE MATH GRADES Box Cars and One-Eyed Jacks MATH GAMES THAT SUPPORT SINGAPORE MATH GRADES 3-5 JOHN FELLING SMART TRAINING SCOTTSDALE, AZ July 9, 2015 john@boxcarsandoneeyedjacks.com phone 1-866-342-3386 / 1-780-440-6284

More information

COUNTING TECHNIQUES. Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen

COUNTING TECHNIQUES. Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen COUNTING TECHNIQUES Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen COMBINATORICS the study of arrangements of objects, is an important part of discrete mathematics. Counting Introduction

More information

Announcements. Homework 1 solutions posted. Test in 2 weeks (27 th ) -Covers up to and including HW2 (informed search)

Announcements. Homework 1 solutions posted. Test in 2 weeks (27 th ) -Covers up to and including HW2 (informed search) Minimax (Ch. 5-5.3) Announcements Homework 1 solutions posted Test in 2 weeks (27 th ) -Covers up to and including HW2 (informed search) Single-agent So far we have look at how a single agent can search

More information

Year 3. Term by Term Objectives. Year 3 Overview. Spring Autumn. Summer. Number: Place Value

Year 3. Term by Term Objectives. Year 3 Overview. Spring Autumn. Summer. Number: Place Value Year 3 Autumn Term by Term Objectives Year 3 Year 3 Overview Spring Autumn Number: Place Value Number: Multiplication and Division Number: Addition and Subtraction Number: Multiplication and Division Measurement

More information

Chapter 2 Integers. Math 20 Activity Packet Page 1

Chapter 2 Integers. Math 20 Activity Packet Page 1 Chapter 2 Integers Contents Chapter 2 Integers... 1 Introduction to Integers... 3 Adding Integers with Context... 5 Adding Integers Practice Game... 7 Subtracting Integers with Context... 9 Mixed Addition

More information

Lecture5: Lossless Compression Techniques

Lecture5: Lossless Compression Techniques Fixed to fixed mapping: we encoded source symbols of fixed length into fixed length code sequences Fixed to variable mapping: we encoded source symbols of fixed length into variable length code sequences

More information

January 11, 2017 Administrative notes

January 11, 2017 Administrative notes January 11, 2017 Administrative notes Clickers Updated on Canvas as of people registered yesterday night. REEF/iClicker mobile is not working for everyone. Use at your own risk. If you are having trouble

More information