[ Prev ]
2022-04-06

-- Apr 6 In-Class Exercise Thread
Extended-Euclid(3003, 182)
1. (d', x', y') = Extended-Euclid(182, 91)
2. (d', x', y') = Extended-Euclid(91, 0)
3. b == 0 : returns (91, 1, 0)
From 2: (d', x', y') = (91, 1, 0)
returns  (91, 0, 1)
From 3: (d', x', y') = (91, 0, 1)
returns (91, 1, -16)
Final: (91, 1, -16)
(Edited: 2022-04-06)
<pre> Extended-Euclid(3003, 182) 1. (d', x', y') = Extended-Euclid(182, 91) 2. (d', x', y') = Extended-Euclid(91, 0) 3. b == 0 : returns (91, 1, 0) From 2: (d', x', y') = (91, 1, 0) returns (91, 0, 1) From 3: (d', x', y') = (91, 0, 1) returns (91, 1, -16) Final: (91, 1, -16) </pre>

-- Apr 6 In-Class Exercise Thread
Extended-Euclid(3003, 182)
(d',x',y') = (91,0,1)
(d, x, y) = (91, 1, 0-floor(3003/182)*1) = (91,1,-16) return (91,1,-16)
  Extended-Euclid(182, 91) (d',x',y') = (91,1,0)
  (d, x, y) = (91, 0, 1-floor(182/91)*0) = (91,0,1) return (91,0,1)
    Extended-Euclid(91, 0) return (91,1,0)
(Edited: 2022-04-06)
<pre> Extended-Euclid(3003, 182) (d',x',y') = (91,0,1) (d, x, y) = (91, 1, 0-floor(3003/182)*1) = (91,1,-16) return (91,1,-16) Extended-Euclid(182, 91) (d',x',y') = (91,1,0) (d, x, y) = (91, 0, 1-floor(182/91)*0) = (91,0,1) return (91,0,1) Extended-Euclid(91, 0) return (91,1,0) </pre>

-- Apr 6 In-Class Exercise Thread
Resource Description for classMain.jpeg
(Edited: 2022-04-06)
((resource:classMain.jpeg|Resource Description for classMain.jpeg))

-- Apr 6 In-Class Exercise Thread
Extended-Euclid(3003, 182): A = 3003 b = 182 D’, x’, y’ = Extended-Euclid(182, 91) β€” BEGIN INNER FUNCTION 1 β€” a= 182 B = 91 D’, x’, y’ = Extended-Euclid(91, 0) β€” BEGIN INNER FUNCTION 2 β€” Return 91, 1, 0; β€” END INNER FUNCTION 2 β€” D’, x’, y’ = 91, 1, 0 D, x, y = d’, y’, x’ - floor(a/b) * y’ D, x, y = 91, 0, 1 - floor(182/91) * 0 D, x, y = 91, 0, 1 Return 91, 0, 1 β€” END INNER FUNCTION 1 β€” D’, x’, y’ = 91, 0, 1 D, x, y = d’, y’, x’ - floor(a/b * y’) D, x, y = 91, 1, 0 - floor(3003/182) * 1 D, x, y = 91, 1, 0 - floor(16.5) * 1 D, x, y = 91, 1, -16 Return 91, 1, -16
(Edited: 2022-04-06)
<nowiki> Extended-Euclid(3003, 182): A = 3003 b = 182 D’, x’, y’ = Extended-Euclid(182, 91) β€” BEGIN INNER FUNCTION 1 β€” a= 182 B = 91 D’, x’, y’ = Extended-Euclid(91, 0) β€” BEGIN INNER FUNCTION 2 β€” Return 91, 1, 0; β€” END INNER FUNCTION 2 β€” D’, x’, y’ = 91, 1, 0 D, x, y = d’, y’, x’ - floor(a/b) * y’ D, x, y = 91, 0, 1 - floor(182/91) * 0 D, x, y = 91, 0, 1 Return 91, 0, 1 β€” END INNER FUNCTION 1 β€” D’, x’, y’ = 91, 0, 1 D, x, y = d’, y’, x’ - floor(a/b * y’) D, x, y = 91, 1, 0 - floor(3003/182) * 1 D, x, y = 91, 1, 0 - floor(16.5) * 1 D, x, y = 91, 1, -16 Return 91, 1, -16 </nowiki>

-- Apr 6 In-Class Exercise Thread
Resource Description for 624e341d838a76922145886a.png
((resource:624e341d838a76922145886a.png|Resource Description for 624e341d838a76922145886a.png))

-- Apr 6 In-Class Exercise Thread
Resource Description for 5. ExtendedEuclid.JPG
(Edited: 2022-04-06)
((resource:5. ExtendedEuclid.JPG|Resource Description for 5. ExtendedEuclid.JPG))

-- Apr 6 In-Class Exercise Thread
Resource Description for Screenshot 2022-04-06 213446.jpg
((resource:Screenshot 2022-04-06 213446.jpg|Resource Description for Screenshot 2022-04-06 213446.jpg))

-- Apr 6 In-Class Exercise Thread
Resource Description for in class 7.jpg
((resource:in class 7.jpg|Resource Description for in class 7.jpg))
2022-04-08

-- Apr 6 In-Class Exercise Thread
Resource Description for WhatsApp Image 2022-04-08 at 2.00.00 PM.jpeg
((resource:WhatsApp Image 2022-04-08 at 2.00.00 PM.jpeg|Resource Description for WhatsApp Image 2022-04-08 at 2.00.00 PM.jpeg))

-- Apr 6 In-Class Exercise Thread
Resource Description for DAA.jpeg
((resource:DAA.jpeg|Resource Description for DAA.jpeg))
[ Next ]
X