240 likes | 367 Views
CSC 490 - Senior Seminar I. This is your most important class!. CSC 490 - Senior Seminar I. This is your most important class!. CSC 490 - Senior Seminar I. Wassn4 due. sassn0 dates …. CSC 490 - Senior Seminar I. NTO text. chapter 25
E N D
CSC 490 - Senior Seminar I This is your most important class!
CSC 490 - Senior Seminar I This is your most important class!
CSC 490 - Senior Seminar I Wassn4 due sassn0 dates …
CSC 490 - Senior Seminar I NTO text chapter 25 first read (abstraction)second read (cognition)refer to supplemental texts
CSC 490 - Senior Seminar I Fast Multiplication but first … “regular” multiplication
CSC 490 - Senior Seminar I How do computers multiply? hardware does it …
CSC 490 - Senior Seminar I people memorize rules to do multiplication …
CSC 490 - Senior Seminar I consider a problem 123 * 57 a) break up by column b) perform rules c) add partial results
CSC 490 - Senior Seminar I 123 * 57 ---- 861 615 ---- 7011
CSC 490 - Senior Seminar I as multiplication problem increases in size … time to execute (time complexity) also increases
CSC 490 - Senior Seminar I 743,116 * 4,199 ------- 6,688,044 66,880,440 74,311,600 +2,972,464,000 ------------- 3,120,344,084
CSC 490 - Senior Seminar I is it linear? O(n) no, time complexity O(n2)
CSC 490 - Senior Seminar I consider binary addition requires n two-bit additions time O(n)
CSC 490 - Senior Seminar I rules of binary addition 0 + 0 = 00 0 + 1 = 01 1 + 0 = 01 1 + 1 = 10
CSC 490 - Senior Seminar I do these rules of binary addition always hold true? yes, it is an algorithm
CSC 490 - Senior Seminar I the process of addition does not require “thought” it is an algorithm
CSC 490 - Senior Seminar I to solve the general problem requires a full adder 3 inputs 2 outputs
CSC 490 - Senior Seminar I consider binary multiplication
CSC 490 - Senior Seminar I rules of multiplications 0 * 0 = 0 0 * 1 = 0 1 * 0 = 0 1 * 1 = 1
CSC 490 - Senior Seminar I 1010 * 1011 ------ 1011 1011 0000 + 1011 ----------- 1101110
CSC 490 - Senior Seminar I time complexity of binary multiplication O(n2 + 2n -1) O(n2)
CSC 490 - Senior Seminar I Fast Multiplication why would we want to speed it up?
CSC 490 - Senior Seminar I Is it possible to get multiplication to O(n)? gut reaction? …
CSC 490 - Senior Seminar I NTO … fast multiplication …