Lesson 10: Congruence, Euclid - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

Lesson 10: Congruence, Euclid

Description:

Lesson 10: Congruence, Euclid. Objectives. Determine if two integers are congruent, ... Euclid (circa 325-265 B.C.) Divide the larger of the two integers by the ... – PowerPoint PPT presentation

Number of Views:117
Avg rating:3.0/5.0
Slides: 6
Provided by: jwi6
Category:

less

Transcript and Presenter's Notes

Title: Lesson 10: Congruence, Euclid


1
Lesson 10 Congruence, Euclid
  • Objectives
  • Determine if two integers are congruent, modulo a
    third
  • Calculate simple hashing functions
  • Generate pseudorandom numbers
  • Use the Euclidean algorithm to find the GCD
  • Outline
  • Congruence
  • Hashing
  • Pseudorandom Number Generation
  • Euclidean Algorithm
  • HW
  • 2.5 Assignment from Lesson 9
  • 2.6 2beh, 6, 7, 12, 18, 19, 25, 36bdf

2
Section 2.5
  • Binary Expansions
  • Base Representations
  • Base Arithmetic
  • Ones, Twos complement

3
Base Problem
  • Find a,b,c
  • (abc)5 (cba)8

4
Euclidean Algorithm
  • Euclid (circa 325-265 B.C.)
  • Divide the larger of the two integers by the
    smaller
  • Divide the divisor by the remainder
  • Continue until there is no remainder
  • The last remainder is the GCD

5
Euclidean Algorithm
  • GCD ( 325, 265 )
  • GCD ( 432, 459 )
  • GCD ( 175, 130 )
  • GCD ( 287, 91 )
Write a Comment
User Comments (0)
About PowerShow.com