PS9-Slides Comparison of Searching Methods Unsorted Sorted Hashed 6240 11203 03495 2801 21690 1 4731 31731 2 7887 41973 3 2143 52143 47416 8776 62777 51731.

Slides:



Advertisements
Similar presentations
U.S. Presidents.
Advertisements

George Washington was born on February 22, 1732.
US Presidents Welcome, students!. George Washington “The Father of the Country”  1st President of the US.  April 30,1789- March 3, 1797  Born: February.
THE PRESIDENTS A review of Chapter Eight
American Presidents Goal: Help students understand how the political geography of the country has changed.
The presidents of the United states of America
Aim: How powerful is the President?. I. Terms A. The president is elected to a four year term 1. He or she may run for reelection B. The president is.
Jeopardy Round Double Jeopardy End Final Jeopardy.
Presidential Greatness Are historians a check on presidents?
By CRR Home To the President of The United states of America.

Statistics. What does the mean mean? Numbers x 1,…, x N their mean value is their sum divided by N.
By: Eric Flanagan Weird Presidential Facts Number of Presidents Barack Obama is the 44 th President of the United States of America. He is only the 43.
The President “No man will ever bring out of that office the reputation which carries him into it. The honeymoon would be as short in that case as in any.
 Republicans  Democrats  Conservative  Cut Taxes  Favor Big Business  Pro Life  Cuts environmental spending  Favor strict sentencing for Crime.
Instructions for using this template. Remember this is Jeopardy, so where I have written “Answer” this is the prompt the students will see, and where.
Kit W. December 2007 BILL CLINTON WEBSITE BOOK Joseph, Paul Bill Clinton. Edina: ABDO, 2001 PODCAST.
President’s Park Williamsburg, VA. 1. George Washington.
Presidents of the United States. Essential Questions What date was president elected? What years did he serve? To which party did he belong? Major names.
The United States’ Presidents Hayden Cowie. George Washington 1 st president Political party: no official Vice president John Adams term of office 4/30/17/89-3/3/97.
$1 Million $500,000 $250,000 $125,000 $64,000 $32,000 $16,000 $8,000 $4,000 $2,000 $1,000 $500 $300 $200 $100 Welcome.
US Presidents Trivia. Which two Presidents died on July 4 th ? Thomas Jefferson and John Adams both in 1826.
Presidents of the United States. Presidents of the United States Test Friday, February 6 1. George Washington ( ) 2. John Adams ( ) 3.
Presidents of United States of America. George Washington
 Section Voting is up  Vote in your section by Thursday, 10pm  Assignment: 20 pts for voting  Two labs this week:  Web App Design Lab  Coin Flipping.
Statistics. What does the mean mean? Numbers x 1,…, x N their mean value is their sum divided by N.
American Government McGraw- Hill © The McGraw-Hill Companies, Inc., 1998 Year Percent Sources: Harold W. Stanley and Richard G. Niemi, Vital Statistics.
Take a closer look. Our city has just received $10,000 to build a monument in town square. The City Council members met last night to do some initial.
Chapter 26 – The Cold War Chapter 29 – The Kennedy & Johnson Years.
Westward Expansion. John Wayne in Stagecoach (1939)
The United States’ Presidents By Susie Johnson. George Washington 1 st President Political party:no official Vice president:John Adams Term of office:4\30\1789-
The PRESIDENTS Everything you probably never need to know about Jack Michelini.
These are the presidents Mighty, mighty presidents. Uh-huh… Uh-huh…
Presidential Trivia. Question: Eight of our Presidents were born British subjects. Identify five of these presidents. Answer: George Washington, John.
Now let’s get down to some Presidential learnin’
Executive Branch What is the purpose of the Executive Branch? To carry-out the Laws. John Adams.
US HISTORY Unit 9 Week 1. Monday 4/14 Shout – outs Positive, celebrate our community School appropriate Not Creepy.
U. S. Presidents Trivia Quiz Number from 1-15 in your journals.
The Power of Greek Life And How Case Can Get Involve By Michael Wasserman.
Presidents of the USA. Main information The President of the United States is the head of state and the head of government The president is also the commander-in-chief.
Who wants to be a Historian? LEVELS Level 12 Level 11 1,000 points 900 points Level points Level 9800 points Level 8600 points Level 7600 points.
StudentPresident Efrain Maria Monica George Washington / James Madison John Adams / James Moore Thomas Jefferson / John Quincy Adams Andrea P Daniel Kiana.
Information Processing: Encoding Serial Position Effect in Recalling.
God Bless the USA The Living Constitution. The MAGNA CARTA King John I in England was forced to sign the Magna Carta in This document was to give.
Hail to the Presidents Music K-8 Vol. 24 #3 Hail to the presidents. Hail to the chiefs. 1. George Washington 2. John Adams 3. Thomas Jefferson 4. James.
Important Facts and Trivia Challenge Created by: Ms. Latoza’s Class 4F November 2008 UNITED STATES PRESIDENTS.
John Adams Thomas Jefferson Declaration Of Independence.
Presidents of the United States There have been 44 US Presidents. How many can you name? 0-10 – OK Good Excellent Genius!!
The USA HIGHER EDUCATION Alyona Garkusha Group 201 Institute of Social Pedagogics and Corrective Educaton Berdyansk, 2011.
The Presidency and Executive Branch. Name the 44 Presidents 1. George Washington 2. John Adams 3. Thomas Jefferson 4. James Madison 5. James Monroe 6.
History of the USA. Why do we need to know American history? To understand American politics, you must understand the history, out of which, its system.
Presidential Parties Test Prep. Remember… Look for patterns in political parties Know which parties belong in which time periods (hint, they are organized.
Presidential Timeline: The Legacy of our Leadership
As of January 2017, there have been 58 elections and 45 US presidents.
Проект по английскому языку
Rail Splitter Society Welcomes all!.
American Presidents Project
The Presidents BY: MRS. SKYE MORGAN.
Presidential Song From 1 – 44 Sung by Geraldine Miller
How many elections have there been
THE COLD WAR UNIT 8 Chapter 26 – The Cold War Chapter 29 – The Kennedy & Johnson Years.
Faces Quiz #1-10 Last name only Except George W
Mr. President A Book Of U.S. Presidents
PRESIDENTS Practice.
Unit IV Executive Branch.
Ameerika presidendid Washington-Garfield
U.S. History Time Line By.
Section 1: Origins of the Cold War
American Presidents Goal:
American Presidents Goal:
Presentation transcript:

PS9-Slides Comparison of Searching Methods Unsorted Sorted Hashed

PS9-Slides Modulo 43 Table

PS9-Slides A hash Function for Integers. 1. break the long integer up into 3 pieces of 3 digits each - add a leading 0, if necessary, to make the 9 digits. 2. Add the three pieces; 3. Find the remainder of the division of this sum by M (= 67, in this case). Ex > > 553 % 67 = 17

PS9-Slides Distribution of h(x): x

PS9-Slides Table ADT void Initialize Table(Table T); bool isNullEntry(TableEntry E); bool isEmpty(Table T, int probe); void InsertTable(Table T, TableEntry newitem); TableEntry RetrieveTable(Table T, KeyType *target)

PS9-Slides Hash Table Definition

PS9-Slides President Hash Table

PS9-Slides Appendix D: President Names File (PresName.dat) George Washington John Adams Thomas Jefferson James Madison James Monroe John Quincy Adams Andrew Jackson Martin Van_Buren William H. Harrison John Tyler James Knox Polk Zachary Taylor Millard Fillmore Franklin Pierce James Buchanan Abraham Lincoln Andrew Johnson Ulysses Simpson Grant Rutherford B. Hayes James Abram Garfield Chester Alan Arthur Grover Cleveland Benjamin Harrison William McKinley Theodore Roosevelt William Howard Taft Woodrow Wilson Warren G. Harding Calvin Coolidge Herbert Clark Hoover Franklin D. Roosevelt Harry S. Truman Dwight D. Eisenhower John F. Kennedy Lyndon Baines Johnson Richard Milhous Nixon Gerald R. Ford Jimmy Carter Ronald Reagan George Bush Bill Clinton

PS9-Slides

Experimental Values for Hash Function Distribution Problem 1. Distribution of h(x) for Integers in IntKeys.dat x Problem 2. Distribution of h(x) for String Keys Developed from PresName.dat x

PS9-Slides Experimental Values for Hash Function Distribution Problem 3. Distribution of of Table Entries for President Hash Tables. Table Entry Locations: Linear Probing. x x Table Entry Locations: Double Hashing. x x

PS9-Slides Using Defines to Control Program Output #define _STUDY : #ifdef _STUDY printf(" Insert %s:\n",E.key); #endif // _STUDY :

PS9-Slides Using Defines to Select Functions (Macros) #define EQ(a,b) (!strcmp((a),(b))) #define EQ(a,b) ((a) == (b)) : if( EQ(E.Key,EmptyKey)) return true; else return false; :