Algorithms. Algorithms. Algorithms 2.2 M ERGESORT. mergesort bottom-up mergesort. sorting complexity divide-and-conquer
|
|
- Opal Rodgers
- 5 years ago
- Views:
Transcription
1 Algorthms Two classc sortng algorthms: mergesort and qucsort R OBERT S EDGEWICK K EVIN W AYNE Crtcal components n the world s computatonal nfrastructure. Full scentfc understandng of ther propertes has enabled us to develop them nto practcal system sorts. Qucsort honored as one of top 10 algorthms of 20 th 2.2 M ERGESORT mergesort bottom-up mergesort Algorthms F O U R T H E D I T I O N century n scence and engneerng. Mergesort. [ths lecture]... sortng complexty dvde-and-conquer Qucsort. [next lecture] R OBERT S EDGEWICK K EVIN W AYNE Last updated on 2/24/16 8:14 PM 2 PSA 2.2 M ERGESORT Mae sure to regster your Clcer on blacboard mergesort bottom-up mergesort You can mss up to 3 lectures wth no penalty wthout any vald reason After that, emal Maa wth documentaton of why you couldn t attend Algorthms R OBERT S EDGEWICK K EVIN W AYNE 3 sortng complexty dvde-and-conquer
2 Mergesort Mergng demo Basc plan. Dvde array nto two halves. Recursvely sort each half. Merge two halves. nput sort left half sort rght half merge results M E R G E S O R T E X A M P L E E E G M O R R S T E X A M P L E E E G M O R R S A E E L M P T X A E E E E G L M M O P R R S T X lo md md+1 h Mergesort overvew sorted sorted 5 6 Mergng demo Mergng demo lo md md+1 h copy to auxlary array
3 Mergng demo Mergng demo A compare mnmum n each subarray compare mnmum n each subarray Mergng demo Mergng demo A E G M R A C E R T A EC G M R A C E R T compare mnmum n each subarray compare mnmum n each subarray
4 Mergng demo Mergng demo A C G M R A C E R T A C GE M R A C E R T compare mnmum n each subarray compare mnmum n each subarray Mergng demo Mergng demo A C E M R A C E R T A C E ME R A C E R T compare mnmum n each subarray compare mnmum n each subarray
5 Mergng demo Mergng demo A C E E R A C E R T A C E E RE A C E R T compare mnmum n each subarray compare mnmum n each subarray A C E R T Mergng demo Mergng demo A C E E E A C E R T A C E E E AG C E R T compare mnmum n each subarray compare mnmum n each subarray
6 Mergng demo Mergng demo A C E E E G C E R T A C E E E G MC E R T compare mnmum n each subarray compare mnmum n each subarray Mergng demo Mergng demo A C E E E G M E R T A C E E E G M ER R T compare mnmum n each subarray compare mnmum n each subarray
7 Mergng demo Mergng demo A C E R T A C E R T one subarray exhausted, tae from other one subarray exhausted, tae from other Mergng demo Mergng demo A C E R T A C E R T one subarray exhausted, tae from other one subarray exhausted, tae from other
8 Mergng demo Mergng demo lo h A C E R T A C E R T both subarrays exhausted, done sorted Mergng: Java mplementaton Mergesort quz 1 prvate statc vod merge(comparable[] a, Comparable[] aux, nt lo, nt md, nt h) for (nt = lo; <= h; ++) aux[] = a[]; nt = lo, = md+1; for (nt = lo; <= h; ++) f ( > md) a[] = aux[++]; else f ( > h) a[] = aux[++]; else f (less(aux[], aux[])) a[] = aux[++]; else a[] = aux[++]; copy merge How many calls does merge() mae to to less() to merge two sorted subarrays of sze N / 2 each nto a sorted array of sze N. A. ~ ¼ N to ~ ½ N B. ~ ½ N best-case nput (N/2 compares) C. ~ ½ N to ~ N A B C D E F G H D. ~ N E. Hey, ths ust counts for class partcpaton ponts, rght? lo md h A G L O R H I M S T A G H I L M worst-case nput (N - 1 compares) A B C H D E F G Q. Why s aux passed as argument? Why s md passed as argument? 31 32
9 Mergesort: Java mplementaton Mergesort: trace publc class Merge prvate statc vod merge(...) /* as before */ prvate statc vod sort(comparable[] a, Comparable[] aux, nt lo, nt h) f (h <= lo) return; nt md = lo + (h - lo) / 2; sort(a, aux, lo, md); sort(a, aux, md+1, h); merge(a, aux, lo, md, h); publc statc vod sort(comparable[] a) Comparable[] aux = new Comparable[a.length]; sort(a, aux, 0, a.length - 1); lo h merge(a, aux, 0, 0, 1) merge(a, aux, 2, 2, 3) merge(a, aux, 0, 1, 3) merge(a, aux, 4, 4, 5) merge(a, aux, 6, 6, 7) merge(a, aux, 4, 5, 7) merge(a, aux, 0, 3, 7) merge(a, aux, 8, 8, 9) merge(a, aux, 10, 10, 11) merge(a, aux, 8, 9, 11) merge(a, aux, 12, 12, 13) merge(a, aux, 14, 14, 15) merge(a, aux, 12, 13, 15) merge(a, aux, 8, 11, 15) merge(a, aux, 0, 7, 15) M E R G E S O R T E X A M P L E E M R G E S O R T E X A M P L E E M G R E S O R T E X A M P L E E G M R E S O R T E X A M P L E E G M R E S O R T E X A M P L E E G M R E S O R T E X A M P L E E G M R E O R S T E X A M P L E E E G M O R R S T E X A M P L E E E G M O R R S E T X A M P L E E E G M O R R S E T A X M P L E E E G M O R R S A E T X M P L E E E G M O R R S A E T X M P L E E E G M O R R S A E T X M P E L E E G M O R R S A E T X E L M P E E G M O R R S A E E L M P T X A E E E E G L M M O P R R S T X Trace of merge results for top-down mergesort lo md h result after recursve call Mergesort quz 2 Mergesort: anmaton Whch of the followng subarray lengths wll occur when runnng mergesort on an array of length 12? 50 random tems A. 1, 2, 3, 4, 6, 8, 12 B. 1, 2, 3, 6, 12 C. 1, 2, 4, 8, 12 D. 1, 3, 6, 9, 12 E. I don't now algorthm poston n order current subarray not n order 35 36
10 Mergesort: anmaton Mergesort analyss: number of compares 50 reverse-sorted tems Proposton. Mergesort uses N lg N compares to sort an array of length N. Pf setch. The maxmum number of compares C (N) to mergesort an array of length N satsfes the recurrence: algorthm poston n order current subarray not n order C (N) C ( N / 2 ) + C ( N / 2 ) + N 1 for N > 1, wth C (1) = 0. left half rght half merge We solve ths smpler recurrence, and assume N s a power of 2: D (N) = 2 D (N / 2) + N, for N > 1, wth D (1) = 0. Q. Can you show that C (N) C(N+1)? result holds for all N (analyss cleaner n ths case) Dvde-and-conquer recurrence Proposton. If D (N) satsfes D (N) = 2 D (N / 2) + N for N > 1, wth D (1) = 0, then D (N) = N lg N. Pf by pcture. [assumng N s a power of 2] Mergesort analyss: number of array accesses Proposton. Mergesort uses 6 N lg N array accesses to sort an array of length N. Pf setch. The max number of array accesses A (N) satsfes the recurrence: D (N) N = N A (N) A ( N / 2 ) + A ( N / 2 ) + 6 N for N > 1, wth A (1) = 0. D (N / 2) D (N / 2) 2 (N/2) = N Key pont. Any algorthm wth the followng structure taes N log N tme: lg N D(N / 4) D(N / 4) D(N / 4) D(N / 4) D(N / 8) D(N / 8) D(N / 8) D(N / 8) D(N / 8) D(N / 8) D(N / 8) D(N / 8) 4 (N/4) = N 8 (N/8) = N T(N) = N lg N publc statc vod f(nt N) f (N == 0) return; f(n/2); f(n/2); lnear(n); solve two problems of half the sze do a lnear amount of wor Notable examples. FFT, hdden-lne removal, Kendall-tau dstance, 39 40
11 Mergesort analyss: memory Mergng demo Proposton. Mergesort uses extra space proportonal to N. Pf. The array needs to be of length N for the last merge. two sorted subarrays A C D G H I M N U V B E F J O P Q R S T A B C D E F G H I J M N O P Q R S T U V merged result Def. A sortng algorthm s n-place f t uses c log N extra memory. Ex. Inserton sort, selecton sort, shellsort. Challenge 1 (not hard). Use array of length ~ ½ N nstead of N. Challenge 2 (very hard). In-place merge. [Kronrod 1969] lo md md+1 h sorted sorted 41 Mergng demo Mergng demo lo md md+1 h copy to auxlary array (of half the sze)
12 Mergng demo Mergng demo A compare mnmum n each subarray compare mnmum n each subarray Mergng demo Mergng demo A E G M R A C E R T A EC G M R A C E R T compare mnmum n each subarray compare mnmum n each subarray
13 Mergng demo Mergng demo A C G M R A C E R T A C GE M R A C E R T compare mnmum n each subarray compare mnmum n each subarray Mergng demo Mergng demo A C E M R A C E R T A C E ME R A C E R T compare mnmum n each subarray compare mnmum n each subarray
14 Mergng demo Mergng demo A C E E R A C E R T A C E E RE A C E R T compare mnmum n each subarray compare mnmum n each subarray Mergng demo Mergng demo A C E E E A C E R T A C E E E AG C E R T compare mnmum n each subarray compare mnmum n each subarray
15 Mergng demo Mergng demo A C E E E G C E R T A C E E E G CM E R T compare mnmum n each subarray compare mnmum n each subarray Mergng demo Mergng demo A C E E E G M E R T A C E E E G M ER R T compare mnmum n each subarray compare mnmum n each subarray
16 Mergng demo Mergng demo lo h A C E R T A C E R T f auxlary subarray s exhausted, done! sorted Mergesort quz 3 Stablty: mergesort Is our mplementaton of mergesort stable? A. Yes. B. No, but t can be modfed to be stable. C. No, mergesort s nherently unstable. D. I don't remember what stablty means. E. I don't now. a sortng algorthm s stable f t preserves the relatve order of equal eys nput C A1 B A2 A3 sorted A3 A1 A2 B C not stable Proposton. Mergesort s stable. publc class Merge prvate statc vod merge(...) /* as before */ prvate statc vod sort(comparable[] a, Comparable[] aux, nt lo, nt h) f (h <= lo) return; nt md = lo + (h - lo) / 2; sort(a, aux, lo, md); sort(a, aux, md+1, h); merge(a, aux, lo, md, h); publc statc vod sort(comparable[] a) /* as before */ Pf. Suffces to verfy that merge operaton s stable
17 Stablty: mergesort Mergesort: practcal mprovements Proposton. Merge operaton s stable. prvate statc vod merge(...) for (nt = lo; <= h; ++) aux[] = a[]; nt = lo, = md+1; for (nt = lo; <= h; ++) f ( > md) a[] = aux[++]; else f ( > h) a[] = aux[++]; else f (less(aux[], aux[])) a[] = aux[++]; else a[] = aux[++]; A1 A2 A3 B D Pf. Taes from left subarray f equal eys A4 A5 C E F G Use nserton sort for small subarrays. Mergesort has too much overhead for tny subarrays. Not captured n cost model (number of compares) Cutoff to nserton sort for 10 tems. prvate statc vod sort(comparable[] a, Comparable[] aux, nt lo, nt h) f (h <= lo + CUTOFF - 1) Inserton.sort(a, lo, h); return; nt md = lo + (h - lo) / 2; sort (a, aux, lo, md); sort (a, aux, md+1, h); merge(a, aux, lo, md, h); Mergesort wth cutoff to nserton sort: vsualzaton Mergesort: practcal mprovements frst subarray second subarray frst merge Stop f already sorted. Is largest tem n frst half smallest tem n second half? Helps for partally-ordered arrays. A B C D E F G H I J A B C D E F G H I J M N O P Q R S T U V M N O P Q R S T U V frst half sorted second half sorted prvate statc vod sort(comparable[] a, Comparable[] aux, nt lo, nt h) f (h <= lo) return; nt md = lo + (h - lo) / 2; sort (a, aux, lo, md); sort (a, aux, md+1, h); f (!less(a[md+1], a[md])) return; merge(a, aux, lo, md, h); result 67 68
18 Mergesort: practcal mprovements Java 6 system sort Elmnate the copy to the auxlary array. Save tme (but not space) by swtchng the role of the nput and auxlary array n each recursve call. prvate statc vod merge(comparable[] a, Comparable[] aux, nt lo, nt md, nt h) nt = lo, = md+1; for (nt = lo; <= h; ++) f ( > md) aux[] = a[++]; else f ( > h) aux[] = a[++]; else f (less(a[], a[])) aux[] = a[++]; else aux[] = a[++]; prvate statc vod sort(comparable[] a, Comparable[] aux, nt lo, nt h) f (h <= lo) return; nt md = lo + (h - lo) / 2; sort (aux, a, lo, md); sort (aux, a, md+1, h); merge(a, aux, lo, md, h); merge from to assumes s ntalze to once, before recursve calls Basc algorthm for sortng obects = mergesort. Cutoff to nserton sort = 7. Stop-f-already-sorted test. Elmnate-the-copy-to-the-auxlary-array trc. Arrays.sort(a) swtch roles of and Bottom-up mergesort Basc plan. Pass through array, mergng subarrays of sze 1. Repeat for subarrays of sze 2, 4, 8,... Algorthms ROBERT SEDGEWICK KEVIN WAYNE MERGESORT mergesort bottom-up mergesort sortng complexty dvde-and-conquer sz = 1 merge(a, aux, 0, 0, 1) merge(a, aux, 2, 2, 3) merge(a, aux, 4, 4, 5) merge(a, aux, 6, 6, 7) merge(a, aux, 8, 8, 9) merge(a, aux, 10, 10, 11) merge(a, aux, 12, 12, 13) merge(a, aux, 14, 14, 15) sz = 2 merge(a, aux, 0, 1, 3) merge(a, aux, 4, 5, 7) merge(a, aux, 8, 9, 11) merge(a, aux, 12, 13, 15) sz = 4 merge(a, aux, 0, 3, 7) merge(a, aux, 8, 11, 15) sz = 8 merge(a, aux, 0, 7, 15) a[] M E R G E S O R T E X A M P L E E M R G E S O R T E X A M P L E E M G R E S O R T E X A M P L E E M G R E S O R T E X A M P L E E M G R E S O R T E X A M P L E E M G R E S O R E T X A M P L E E M G R E S O R E T A X M P L E E M G R E S O R E T A X M P L E E M G R E S O R E T A X M P E L E G M R E S O R E T A X M P E L E G M R E O R S E T A X M P E L E G M R E O R S A E T X M P E L E G M R E O R S A E T X E L M P E E G M O R R S A E T X E L M P E E G M O R R S A E E L M P T X A E E E E G L M M O P R R S T X 72
19 Bottom-up mergesort: Java mplementaton Mergesort: vsualzatons publc class MergeBU prvate statc vod merge(...) /* as before */ publc statc vod sort(comparable[] a) nt N = a.length; Comparable[] aux = new Comparable[N]; for (nt sz = 1; sz < N; sz = sz+sz) for (nt lo = 0; lo < N-sz; lo += sz+sz) merge(a, aux, lo, lo+sz-1, Math.mn(lo+sz+sz-1, N-1)); Bottom lne. Smple and non-recursve verson of mergesort. 73 top-down mergesort (cutoff = 12) bottom-up mergesort (cutoff = 12) 74 Mergesort quz 4 Natural mergesort Whch s faster n practce: top-down mergesort or bottom-up mergesort? You may assume N s a power of 2. A. Top-down (recursve) mergesort. Maybe! Localty B. Bottom-up (nonrecursve) mergesort. Maybe! Overhead C. About the same. D. It depends. E. I don't now. Overhead can be mnmzed wth well-chosen cutoff to nserton sort. Localty s nherent. 75 Idea. Explot pre-exstng order by dentfyng naturally-occurrng runs. nput frst run second run merge two runs Tradeoff. Fewer passes vs. extra compares per pass to dentfy runs. 76
20 Tmsort Natural mergesort. Use bnary nserton sort to mae ntal runs (f needed). A few more clever optmzatons. Consequence. Lnear tme on many arrays wth pre-exstng order. Now wdely used. Python, Java 7, GNU Octave, Androd,. Tm Peters Sortng summary nplace? stable? best average worst remars selecton ½ N 2 ½ N 2 ½ N 2 N exchanges nserton N ¼ N 2 ½ N 2 use for small N or partally ordered shell N log3 N? c N 3/2 tght code; subquadratc merge ½ N lg N N lg N N lg N tmsort N N lg N N lg N N log N guarantee; stable mproves mergesort when preexstng order? N N lg N N lg N holy sortng gral Commercal brea 2.2 MERGESORT Algorthms mergesort bottom-up mergesort sortng complexty dvde-and-conquer ROBERT SEDGEWICK KEVIN WAYNE
21 Complexty of sortng Decson tree (for 3 dstnct eys a, b, and c) Computatonal complexty. Framewor to study effcency of algorthms for solvng a partcular problem X. Model of computaton. Allowable operatons. Cost model. Operaton counts. Upper bound. Cost guarantee provded by some algorthm for X. Lower bound. Proven lmt on cost guarantee of all algorthms for X. Optmal algorthm. Algorthm wth best possble cost guarantee for X. yes b < c a < b yes no code between compares (e.g., sequence of exchanges) no yes a < c no heght of tree = worst-case number of compares model of computaton cost model decson tree # compares lower bound ~ upper bound can access nformaton only through compares (e.g., Java Comparable framewor) a b c yes a < c no b a c yes b < c no upper bound ~ N lg N from mergesort lower bound? a c b c a b b c a c b a optmal algorthm? each leaf corresponds to one (and only one) orderng; (at least) one leaf for each possble orderng complexty of sortng Compare-based lower bound for sortng Proposton. Any compare-based sortng algorthm must use at least lg ( N! ) ~ N lg N compares n the worst-case. Pf. Assume array conssts of N dstnct values a1 through an. Worst case dctated by heght h of decson tree. Bnary tree of heght h has at most 2h leaves. N! dfferent orderngs at least N! leaves. Compare-based lower bound for sortng Proposton. Any compare-based sortng algorthm must use at least lg ( N! ) ~ N lg N compares n the worst-case. Pf. Assume array conssts of N dstnct values a1 through an. Worst case dctated by heght h of decson tree. Bnary tree of heght h has at most 2h leaves. N! dfferent orderngs at least N! leaves. h 2 h # leaves N! h lg ( N! ) ~ N lg N Strlng's formula at least N! leaves no more than 2 h leaves 83 84
22 Complexty of sortng Complexty results n context Model of computaton. Allowable operatons. Cost model. Operaton count(s). Upper bound. Cost guarantee provded by some algorthm for X. Lower bound. Proven lmt on cost guarantee of all algorthms for X. Optmal algorthm. Algorthm wth best possble cost guarantee for X. model of computaton decson tree cost model # compares upper bound ~ N lg N lower bound ~ N lg N optmal algorthm mergesort complexty of sortng Frst goal of algorthm desgn: optmal algorthms. Compares? Mergesort s optmal wth respect to number compares. Space? Mergesort s not optmal wth respect to space usage. Lessons. Use theory as a gude. Ex. Desgn sortng algorthm that guarantees ~ ½ N lg N compares? Ex. Desgn sortng algorthm that s both tme- and space-optmal? Complexty results n context (contnued) Commonly-used notatons n the theory of algorthms Lower bound may not hold f the algorthm can tae advantage of: The ntal order of the nput. Ex: nserton sort requres only a lnear number of compares on partally-sorted arrays. notaton provdes example shorthand for Tlde leadng term ~ ½ N 2 ½ N 2 ½ N N log N + 3 N The dstrbuton of ey values. Ex: 3-way qucsort requres only a lnear number of compares on arrays wth a constant number of dstnct eys. [stay tuned] The representaton of the eys. Ex: radx sorts requre no ey compares they access the data va character/dgt compares. Q. How would you sort an array of Students by brthday? Q. How would you sort an array of Students by last name (of <= 12 chars)? Bg Theta order of growth Θ(N 2 ) Bg O upper bound O(N 2 ) Bg Omega lower bound Ω(N 2 ) ½ N 2 10 N 2 5 N N log N + 3 N 10 N N 22 N log N + 3 N ½ N 2 N 5 N N log N + 3 N 87 88
23 Shuffle a lned lst 2.2 MERGESORT Problem. Gven a sngly-lned lst, rearrange ts nodes unformly at random. Assumpton. Access to a perfect random number generator. all N! permutatons equally lely Verson 1. Lnear tme, lnear extra space. Verson 2. Lnearthmc tme, logarthmc or constant extra space. mergesort Hard! (See Pazza) bottom-up mergesort frst Algorthms sortng complexty dvde-and-conquer nput null ROBERT SEDGEWICK KEVIN WAYNE frst shuffled null 90
MERGESORT BBM ALGORITHMS DEPT. OF COMPUTER ENGINEERING ERKUT ERDEM. Mergesort. Feb. 27, 2014
ergesort BB 202 - ALGOITHS Basc plan. Dvde array nto two halves. ecursvely sort each half. erge two halves. DPT. OF COPUT NGINING KUT D GSOT nput G S O T X A P L sort left half G O S T X A P L sort rght
More informationMERGESORT BBM ALGORITHMS DEPT. OF COMPUTER ENGINEERING. Mergesort
BBM 202 - ALGORITHMS DEPT. OF COMPUTER ENGINEERING Mergesort Basc plan. Dvde array nto two halves. Recursvely sort each half. Merge two halves. MERGESORT nput sort left half sort rght half merge results
More informationAlgorithms. Algorithms 2.2 MERGESORT. mergesort bottom-up mergesort sorting complexity divide-and-conquer ROBERT SEDGEWICK KEVIN WAYNE
Algorithms ROBERT SEDGEWICK KEVIN WAYNE 2.2 MERGESORT Algorithms F O U R T H E D I T I O N mergesort bottom-up mergesort sorting complexity divide-and-conquer ROBERT SEDGEWICK KEVIN WAYNE http://algs4.cs.princeton.edu
More informationOutline. 1 Merging. 2 Merge Sort. 3 Complexity of Sorting. 4 Merge Sort and Other Sorts 2 / 10
Merge Sort 1 / 10 Outline 1 Merging 2 Merge Sort 3 Complexity of Sorting 4 Merge Sort and Other Sorts 2 / 10 Merging Merge sort is based on a simple operation known as merging: combining two ordered arrays
More informationELEMENTARY SORTING ALGORITHMS
BBM 202 - ALGORITHMS DEPT. OF COMPUTER ENGINEERING ELEMENTARY SORTING ALGORITHMS Feb. 20, 2017 Acknowledgement: The course sldes are adapted from the sldes prepared by R. Sedgewck and K. Wayne of Prnceton
More informationMath Review. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University
Math Revew CptS 223 dvanced Data Structures Larry Holder School of Electrcal Engneerng and Computer Scence Washngton State Unversty 1 Why do we need math n a data structures course? nalyzng data structures
More informationDynamic Programming. Preview. Dynamic Programming. Dynamic Programming. Dynamic Programming (Example: Fibonacci Sequence)
/24/27 Prevew Fbonacc Sequence Longest Common Subsequence Dynamc programmng s a method for solvng complex problems by breakng them down nto smpler sub-problems. It s applcable to problems exhbtng the propertes
More informationOutline and Reading. Dynamic Programming. Dynamic Programming revealed. Computing Fibonacci. The General Dynamic Programming Technique
Outlne and Readng Dynamc Programmng The General Technque ( 5.3.2) -1 Knapsac Problem ( 5.3.3) Matrx Chan-Product ( 5.3.1) Dynamc Programmng verson 1.4 1 Dynamc Programmng verson 1.4 2 Dynamc Programmng
More informationCalculation of time complexity (3%)
Problem 1. (30%) Calculaton of tme complexty (3%) Gven n ctes, usng exhaust search to see every result takes O(n!). Calculaton of tme needed to solve the problem (2%) 40 ctes:40! dfferent tours 40 add
More informationDesign and Analysis of Algorithms
Desgn and Analyss of Algorthms CSE 53 Lecture 4 Dynamc Programmng Junzhou Huang, Ph.D. Department of Computer Scence and Engneerng CSE53 Desgn and Analyss of Algorthms The General Dynamc Programmng Technque
More informationCS 770G - Parallel Algorithms in Scientific Computing
References CS 770G - Parallel Algorthms n Scentfc Computng Parallel Sortng Introducton to Parallel Computng Kumar, Grama, Gupta, Karyps, Benjamn Cummngs. A porton of the notes comes from Prof. J. Demmel
More informationVQ widely used in coding speech, image, and video
at Scalar quantzers are specal cases of vector quantzers (VQ): they are constraned to look at one sample at a tme (memoryless) VQ does not have such constrant better RD perfomance expected Source codng
More informationDynamic Programming! CSE 417: Algorithms and Computational Complexity!
Dynamc Programmng CSE 417: Algorthms and Computatonal Complexty Wnter 2009 W. L. Ruzzo Dynamc Programmng, I:" Fbonacc & Stamps Outlne: General Prncples Easy Examples Fbonacc, Lckng Stamps Meater examples
More informationModule 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur
Module 3 LOSSY IMAGE COMPRESSION SYSTEMS Verson ECE IIT, Kharagpur Lesson 6 Theory of Quantzaton Verson ECE IIT, Kharagpur Instructonal Objectves At the end of ths lesson, the students should be able to:
More informationProblem Set 9 Solutions
Desgn and Analyss of Algorthms May 4, 2015 Massachusetts Insttute of Technology 6.046J/18.410J Profs. Erk Demane, Srn Devadas, and Nancy Lynch Problem Set 9 Solutons Problem Set 9 Solutons Ths problem
More informationCS 350 Algorithms and Complexity
CS 350 Algorthms and Complexty Wnter 2015 Lecture 8: Decrease & Conquer (contnued) Andrew P. Black Department of Computer Scence Portland State Unversty Example: DFS traversal of undrected graph a b c
More informationLecture 14: Nov. 11 & 13
CIS 2168 Data Structures Fall 2014 Lecturer: Anwar Mamat Lecture 14: Nov. 11 & 13 Disclaimer: These notes may be distributed outside this class only with the permission of the Instructor. 14.1 Sorting
More informationCommon loop optimizations. Example to improve locality. Why Dependence Analysis. Data Dependence in Loops. Goal is to find best schedule:
15-745 Lecture 6 Data Dependence n Loops Copyrght Seth Goldsten, 2008 Based on sldes from Allen&Kennedy Lecture 6 15-745 2005-8 1 Common loop optmzatons Hostng of loop-nvarant computatons pre-compute before
More informationInf 2B: Sorting, MergeSort and Divide-and-Conquer
Inf 2B: Sorting, MergeSort and Divide-and-Conquer Lecture 7 of ADS thread Kyriakos Kalorkoti School of Informatics University of Edinburgh The Sorting Problem Input: Task: Array A of items with comparable
More informationExercises. 18 Algorithms
18 Algorthms Exercses 0.1. In each of the followng stuatons, ndcate whether f = O(g), or f = Ω(g), or both (n whch case f = Θ(g)). f(n) g(n) (a) n 100 n 200 (b) n 1/2 n 2/3 (c) 100n + log n n + (log n)
More informationHomework 9 Solutions. 1. (Exercises from the book, 6 th edition, 6.6, 1-3.) Determine the number of distinct orderings of the letters given:
Homework 9 Solutons PROBLEM ONE 1 (Exercses from the book, th edton,, 1-) Determne the number of dstnct orderngs of the letters gven: (a) GUIDE Soluton: 5! (b) SCHOOL Soluton:! (c) SALESPERSONS Soluton:
More informationCHAPTER 17 Amortized Analysis
CHAPTER 7 Amortzed Analyss In an amortzed analyss, the tme requred to perform a sequence of data structure operatons s averaged over all the operatons performed. It can be used to show that the average
More informationIntroduction to Algorithms
Introducton to Algorthms 6.046J/8.40J Lecture 7 Prof. Potr Indyk Data Structures Role of data structures: Encapsulate data Support certan operatons (e.g., INSERT, DELETE, SEARCH) Our focus: effcency of
More informationE Tail Inequalities. E.1 Markov s Inequality. Non-Lecture E: Tail Inequalities
Algorthms Non-Lecture E: Tal Inequaltes If you hold a cat by the tal you learn thngs you cannot learn any other way. Mar Twan E Tal Inequaltes The smple recursve structure of sp lsts made t relatvely easy
More informationFor now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.
Neural Networks : Dervaton compled by Alvn Wan from Professor Jtendra Malk s lecture Ths type of computaton s called deep learnng and s the most popular method for many problems, such as computer vson
More informationTornado and Luby Transform Codes. Ashish Khisti Presentation October 22, 2003
Tornado and Luby Transform Codes Ashsh Khst 6.454 Presentaton October 22, 2003 Background: Erasure Channel Elas[956] studed the Erasure Channel β x x β β x 2 m x 2 k? Capacty of Noseless Erasure Channel
More informationA 2D Bounded Linear Program (H,c) 2D Linear Programming
A 2D Bounded Lnear Program (H,c) h 3 v h 8 h 5 c h 4 h h 6 h 7 h 2 2D Lnear Programmng C s a polygonal regon, the ntersecton of n halfplanes. (H, c) s nfeasble, as C s empty. Feasble regon C s unbounded
More informationWeek 5: Neural Networks
Week 5: Neural Networks Instructor: Sergey Levne Neural Networks Summary In the prevous lecture, we saw how we can construct neural networks by extendng logstc regresson. Neural networks consst of multple
More informationMLE and Bayesian Estimation. Jie Tang Department of Computer Science & Technology Tsinghua University 2012
MLE and Bayesan Estmaton Je Tang Department of Computer Scence & Technology Tsnghua Unversty 01 1 Lnear Regresson? As the frst step, we need to decde how we re gong to represent the functon f. One example:
More informationCHAPTER IV RESEARCH FINDING AND ANALYSIS
CHAPTER IV REEARCH FINDING AND ANALYI A. Descrpton of Research Fndngs To fnd out the dfference between the students who were taught by usng Mme Game and the students who were not taught by usng Mme Game
More informationErrors for Linear Systems
Errors for Lnear Systems When we solve a lnear system Ax b we often do not know A and b exactly, but have only approxmatons  and ˆb avalable. Then the best thng we can do s to solve ˆx ˆb exactly whch
More informationprinceton univ. F 13 cos 521: Advanced Algorithm Design Lecture 3: Large deviations bounds and applications Lecturer: Sanjeev Arora
prnceton unv. F 13 cos 521: Advanced Algorthm Desgn Lecture 3: Large devatons bounds and applcatons Lecturer: Sanjeev Arora Scrbe: Today s topc s devaton bounds: what s the probablty that a random varable
More informationSORTING ALGORITHMS BBM ALGORITHMS DEPT. OF COMPUTER ENGINEERING ERKUT ERDEM. Mar. 21, 2013
BBM 202 - ALGORITHMS DPT. OF COMPUTR NGINRING RKUT RDM SORTING ALGORITHMS Mar. 21, 2013 Acknowledgement: The course slides are adapted from the slides prepared by R. Sedgewick and K. Wayne of Princeton
More information5. DIVIDE AND CONQUER I
5. DIVIDE AND CONQUER I mergesort counting inversions closest pair of points median and selection Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationPartition and Select
Divide-Conquer-Glue Algorithms Quicksort, Quickselect and the Master Theorem Quickselect algorithm Tyler Moore CSE 3353, SMU, Dallas, TX Lecture 11 Selection Problem: find the kth smallest number of an
More informationNumerical Heat and Mass Transfer
Master degree n Mechancal Engneerng Numercal Heat and Mass Transfer 06-Fnte-Dfference Method (One-dmensonal, steady state heat conducton) Fausto Arpno f.arpno@uncas.t Introducton Why we use models and
More informationCS : Algorithms and Uncertainty Lecture 17 Date: October 26, 2016
CS 29-128: Algorthms and Uncertanty Lecture 17 Date: October 26, 2016 Instructor: Nkhl Bansal Scrbe: Mchael Denns 1 Introducton In ths lecture we wll be lookng nto the secretary problem, and an nterestng
More informationfind (x): given element x, return the canonical element of the set containing x;
COS 43 Sprng, 009 Dsjont Set Unon Problem: Mantan a collecton of dsjont sets. Two operatons: fnd the set contanng a gven element; unte two sets nto one (destructvely). Approach: Canoncal element method:
More informationLecture 4: Constant Time SVD Approximation
Spectral Algorthms and Representatons eb. 17, Mar. 3 and 8, 005 Lecture 4: Constant Tme SVD Approxmaton Lecturer: Santosh Vempala Scrbe: Jangzhuo Chen Ths topc conssts of three lectures 0/17, 03/03, 03/08),
More informationFTCS Solution to the Heat Equation
FTCS Soluton to the Heat Equaton ME 448/548 Notes Gerald Recktenwald Portland State Unversty Department of Mechancal Engneerng gerry@pdx.edu ME 448/548: FTCS Soluton to the Heat Equaton Overvew 1. Use
More informationEconomics 101. Lecture 4 - Equilibrium and Efficiency
Economcs 0 Lecture 4 - Equlbrum and Effcency Intro As dscussed n the prevous lecture, we wll now move from an envronment where we looed at consumers mang decsons n solaton to analyzng economes full of
More information18.1 Introduction and Recap
CS787: Advanced Algorthms Scrbe: Pryananda Shenoy and Shjn Kong Lecturer: Shuch Chawla Topc: Streamng Algorthmscontnued) Date: 0/26/2007 We contnue talng about streamng algorthms n ths lecture, ncludng
More informationHashing. Alexandra Stefan
Hashng Alexandra Stefan 1 Hash tables Tables Drect access table (or key-ndex table): key => ndex Hash table: key => hash value => ndex Man components Hash functon Collson resoluton Dfferent keys mapped
More informationLecture 5 Decoding Binary BCH Codes
Lecture 5 Decodng Bnary BCH Codes In ths class, we wll ntroduce dfferent methods for decodng BCH codes 51 Decodng the [15, 7, 5] 2 -BCH Code Consder the [15, 7, 5] 2 -code C we ntroduced n the last lecture
More informationThe Study of Teaching-learning-based Optimization Algorithm
Advanced Scence and Technology Letters Vol. (AST 06), pp.05- http://dx.do.org/0.57/astl.06. The Study of Teachng-learnng-based Optmzaton Algorthm u Sun, Yan fu, Lele Kong, Haolang Q,, Helongang Insttute
More informationCS 331 DESIGN AND ANALYSIS OF ALGORITHMS DYNAMIC PROGRAMMING. Dr. Daisy Tang
CS DESIGN ND NLYSIS OF LGORITHMS DYNMIC PROGRMMING Dr. Dasy Tang Dynamc Programmng Idea: Problems can be dvded nto stages Soluton s a sequence o decsons and the decson at the current stage s based on the
More informationChapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems
Numercal Analyss by Dr. Anta Pal Assstant Professor Department of Mathematcs Natonal Insttute of Technology Durgapur Durgapur-713209 emal: anta.bue@gmal.com 1 . Chapter 5 Soluton of System of Lnear Equatons
More informationGeneralized Linear Methods
Generalzed Lnear Methods 1 Introducton In the Ensemble Methods the general dea s that usng a combnaton of several weak learner one could make a better learner. More formally, assume that we have a set
More informationLecture Notes on Linear Regression
Lecture Notes on Lnear Regresson Feng L fl@sdueducn Shandong Unversty, Chna Lnear Regresson Problem In regresson problem, we am at predct a contnuous target value gven an nput feature vector We assume
More informationChapter 3 Describing Data Using Numerical Measures
Chapter 3 Student Lecture Notes 3-1 Chapter 3 Descrbng Data Usng Numercal Measures Fall 2006 Fundamentals of Busness Statstcs 1 Chapter Goals To establsh the usefulness of summary measures of data. The
More informationNeural networks. Nuno Vasconcelos ECE Department, UCSD
Neural networs Nuno Vasconcelos ECE Department, UCSD Classfcaton a classfcaton problem has two types of varables e.g. X - vector of observatons (features) n the world Y - state (class) of the world x X
More informationNote on EM-training of IBM-model 1
Note on EM-tranng of IBM-model INF58 Language Technologcal Applcatons, Fall The sldes on ths subject (nf58 6.pdf) ncludng the example seem nsuffcent to gve a good grasp of what s gong on. Hence here are
More information04 - Treaps. Dr. Alexander Souza
Algorths Theory 04 - Treaps Dr. Alexander Souza The dctonary proble Gven: Unverse (U,
More informationA PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS
HCMC Unversty of Pedagogy Thong Nguyen Huu et al. A PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS Thong Nguyen Huu and Hao Tran Van Department of mathematcs-nformaton,
More informationPlease initial the statement below to show that you have read it
EN0: Structural nalyss Exam I Wednesday, March 2, 2005 Dvson of Engneerng rown Unversty NME: General Instructons No collaboraton of any nd s permtted on ths examnaton. You may consult your own wrtten lecture
More informationIntroduction to Vapor/Liquid Equilibrium, part 2. Raoult s Law:
CE304, Sprng 2004 Lecture 4 Introducton to Vapor/Lqud Equlbrum, part 2 Raoult s Law: The smplest model that allows us do VLE calculatons s obtaned when we assume that the vapor phase s an deal gas, and
More informationOutline. Communication. Bellman Ford Algorithm. Bellman Ford Example. Bellman Ford Shortest Path [1]
DYNAMIC SHORTEST PATH SEARCH AND SYNCHRONIZED TASK SWITCHING Jay Wagenpfel, Adran Trachte 2 Outlne Shortest Communcaton Path Searchng Bellmann Ford algorthm Algorthm for dynamc case Modfcatons to our algorthm
More informationLecture 4. Instructor: Haipeng Luo
Lecture 4 Instructor: Hapeng Luo In the followng lectures, we focus on the expert problem and study more adaptve algorthms. Although Hedge s proven to be worst-case optmal, one may wonder how well t would
More informationDynamic Programming 4/5/12. Dynamic programming. Fibonacci numbers. Fibonacci: a first attempt. David Kauchak cs302 Spring 2012
Dynamc Programmng Davd Kauchak cs32 Sprng 212 Dynamc programmng l One of the most mportant algorthm tools! l Very common ntervew queston l Method for solvng problems where optmal solutons can be defned
More informationLinear Feature Engineering 11
Lnear Feature Engneerng 11 2 Least-Squares 2.1 Smple least-squares Consder the followng dataset. We have a bunch of nputs x and correspondng outputs y. The partcular values n ths dataset are x y 0.23 0.19
More informationLecture 4: Universal Hash Functions/Streaming Cont d
CSE 5: Desgn and Analyss of Algorthms I Sprng 06 Lecture 4: Unversal Hash Functons/Streamng Cont d Lecturer: Shayan Oves Gharan Aprl 6th Scrbe: Jacob Schreber Dsclamer: These notes have not been subjected
More informationPsychology 282 Lecture #24 Outline Regression Diagnostics: Outliers
Psychology 282 Lecture #24 Outlne Regresson Dagnostcs: Outlers In an earler lecture we studed the statstcal assumptons underlyng the regresson model, ncludng the followng ponts: Formal statement of assumptons.
More informationIntroduction to Information Theory, Data Compression,
Introducton to Informaton Theory, Data Compresson, Codng Mehd Ibm Brahm, Laura Mnkova Aprl 5, 208 Ths s the augmented transcrpt of a lecture gven by Luc Devroye on the 3th of March 208 for a Data Structures
More informationENTROPIC QUESTIONING
ENTROPIC QUESTIONING NACHUM. Introucton Goal. Pck the queston that contrbutes most to fnng a sutable prouct. Iea. Use an nformaton-theoretc measure. Bascs. Entropy (a non-negatve real number) measures
More informationSpeeding up Computation of Scalar Multiplication in Elliptic Curve Cryptosystem
H.K. Pathak et. al. / (IJCSE) Internatonal Journal on Computer Scence and Engneerng Speedng up Computaton of Scalar Multplcaton n Ellptc Curve Cryptosystem H. K. Pathak Manju Sangh S.o.S n Computer scence
More information5. DIVIDE AND CONQUER I
5. DIVIDE AND CONQUER I mergesort counting inversions closest pair of points randomized quicksort median and selection Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationChapter Newton s Method
Chapter 9. Newton s Method After readng ths chapter, you should be able to:. Understand how Newton s method s dfferent from the Golden Secton Search method. Understand how Newton s method works 3. Solve
More informationSection 3.6 Complex Zeros
04 Chapter Secton 6 Comple Zeros When fndng the zeros of polynomals, at some pont you're faced wth the problem Whle there are clearly no real numbers that are solutons to ths equaton, leavng thngs there
More informationWeek3, Chapter 4. Position and Displacement. Motion in Two Dimensions. Instantaneous Velocity. Average Velocity
Week3, Chapter 4 Moton n Two Dmensons Lecture Quz A partcle confned to moton along the x axs moves wth constant acceleraton from x =.0 m to x = 8.0 m durng a 1-s tme nterval. The velocty of the partcle
More informationLectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix
Lectures - Week 4 Matrx norms, Condtonng, Vector Spaces, Lnear Independence, Spannng sets and Bass, Null space and Range of a Matrx Matrx Norms Now we turn to assocatng a number to each matrx. We could
More informationComputing Correlated Equilibria in Multi-Player Games
Computng Correlated Equlbra n Mult-Player Games Chrstos H. Papadmtrou Presented by Zhanxang Huang December 7th, 2005 1 The Author Dr. Chrstos H. Papadmtrou CS professor at UC Berkley (taught at Harvard,
More informationDifference Equations
Dfference Equatons c Jan Vrbk 1 Bascs Suppose a sequence of numbers, say a 0,a 1,a,a 3,... s defned by a certan general relatonshp between, say, three consecutve values of the sequence, e.g. a + +3a +1
More informationInner Product. Euclidean Space. Orthonormal Basis. Orthogonal
Inner Product Defnton 1 () A Eucldean space s a fnte-dmensonal vector space over the reals R, wth an nner product,. Defnton 2 (Inner Product) An nner product, on a real vector space X s a symmetrc, blnear,
More informationEEL 6266 Power System Operation and Control. Chapter 3 Economic Dispatch Using Dynamic Programming
EEL 6266 Power System Operaton and Control Chapter 3 Economc Dspatch Usng Dynamc Programmng Pecewse Lnear Cost Functons Common practce many utltes prefer to represent ther generator cost functons as sngle-
More informationEstimating Delays. Gate Delay Model. Gate Delay. Effort Delay. Computing Logical Effort. Logical Effort
Estmatng Delas Would be nce to have a back of the envelope method for szng gates for speed Logcal Effort ook b Sutherland, Sproull, Harrs Chapter s on our web page Gate Dela Model Frst, normalze a model
More informationAn Integrated OR/CP Method for Planning and Scheduling
An Integrated OR/CP Method for Plannng and Schedulng John Hooer Carnege Mellon Unversty IT Unversty of Copenhagen June 2005 The Problem Allocate tass to facltes. Schedule tass assgned to each faclty. Subect
More informationCHAPTER IV RESEARCH FINDING AND DISCUSSIONS
CHAPTER IV RESEARCH FINDING AND DISCUSSIONS A. Descrpton of Research Fndng. The Implementaton of Learnng Havng ganed the whole needed data, the researcher then dd analyss whch refers to the statstcal data
More information= z 20 z n. (k 20) + 4 z k = 4
Problem Set #7 solutons 7.2.. (a Fnd the coeffcent of z k n (z + z 5 + z 6 + z 7 + 5, k 20. We use the known seres expanson ( n+l ( z l l z n below: (z + z 5 + z 6 + z 7 + 5 (z 5 ( + z + z 2 + z + 5 5
More informationThe Problem: Mapping programs to architectures
Complng for Parallelsm & Localty!Last tme! SSA and ts uses!today! Parallelsm and localty! Data dependences and loops CS553 Lecture Complng for Parallelsm & Localty 1 The Problem: Mappng programs to archtectures
More informationProvable Security Signatures
Provable Securty Sgnatures UCL - Louvan-la-Neuve Wednesday, July 10th, 2002 LIENS-CNRS Ecole normale supéreure Summary Introducton Sgnature FD PSS Forkng Lemma Generc Model Concluson Provable Securty -
More information5. DIVIDE AND CONQUER I
5. DIVIDE AND CONQUER I mergesort counting inversions randomized quicksort median and selection closest pair of points Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationSome modelling aspects for the Matlab implementation of MMA
Some modellng aspects for the Matlab mplementaton of MMA Krster Svanberg krlle@math.kth.se Optmzaton and Systems Theory Department of Mathematcs KTH, SE 10044 Stockholm September 2004 1. Consdered optmzaton
More informationA Simple Inventory System
A Smple Inventory System Lawrence M. Leems and Stephen K. Park, Dscrete-Event Smulaton: A Frst Course, Prentce Hall, 2006 Hu Chen Computer Scence Vrgna State Unversty Petersburg, Vrgna February 8, 2017
More informationCommunication Complexity 16:198: February Lecture 4. x ij y ij
Communcaton Complexty 16:198:671 09 February 2010 Lecture 4 Lecturer: Troy Lee Scrbe: Rajat Mttal 1 Homework problem : Trbes We wll solve the thrd queston n the homework. The goal s to show that the nondetermnstc
More informationIntroduction to information theory and data compression
Introducton to nformaton theory and data compresson Adel Magra, Emma Gouné, Irène Woo March 8, 207 Ths s the augmented transcrpt of a lecture gven by Luc Devroye on March 9th 207 for a Data Structures
More informationLinear Correlation. Many research issues are pursued with nonexperimental studies that seek to establish relationships among 2 or more variables
Lnear Correlaton Many research ssues are pursued wth nonexpermental studes that seek to establsh relatonshps among or more varables E.g., correlates of ntellgence; relaton between SAT and GPA; relaton
More informationLogistic Regression. CAP 5610: Machine Learning Instructor: Guo-Jun QI
Logstc Regresson CAP 561: achne Learnng Instructor: Guo-Jun QI Bayes Classfer: A Generatve model odel the posteror dstrbuton P(Y X) Estmate class-condtonal dstrbuton P(X Y) for each Y Estmate pror dstrbuton
More information11 Tail Inequalities Markov s Inequality. Lecture 11: Tail Inequalities [Fa 13]
Algorthms Lecture 11: Tal Inequaltes [Fa 13] If you hold a cat by the tal you learn thngs you cannot learn any other way. Mark Twan 11 Tal Inequaltes The smple recursve structure of skp lsts made t relatvely
More informationEN40: Dynamics and Vibrations. Homework 7: Rigid Body Kinematics
N40: ynamcs and Vbratons Homewor 7: Rgd Body Knematcs School of ngneerng Brown Unversty 1. In the fgure below, bar AB rotates counterclocwse at 4 rad/s. What are the angular veloctes of bars BC and C?.
More informationLecture Randomized Load Balancing strategies and their analysis. Probability concepts include, counting, the union bound, and Chernoff bounds.
U.C. Berkeley CS273: Parallel and Dstrbuted Theory Lecture 1 Professor Satsh Rao August 26, 2010 Lecturer: Satsh Rao Last revsed September 2, 2010 Lecture 1 1 Course Outlne We wll cover a samplng of the
More informationClustering gene expression data & the EM algorithm
CG, Fall 2011-12 Clusterng gene expresson data & the EM algorthm CG 08 Ron Shamr 1 How Gene Expresson Data Looks Entres of the Raw Data matrx: Rato values Absolute values Row = gene s expresson pattern
More informationEEE 241: Linear Systems
EEE : Lnear Systems Summary #: Backpropagaton BACKPROPAGATION The perceptron rule as well as the Wdrow Hoff learnng were desgned to tran sngle layer networks. They suffer from the same dsadvantage: they
More informationAnalysis of Algorithms - Using Asymptotic Bounds -
Analysis of Algorithms - Using Asymptotic Bounds - Andreas Ermedahl MRTC (Mälardalens Real-Time Research Center) andreas.ermedahl@mdh.se Autumn 004 Rehersal: Asymptotic bounds Gives running time bounds
More informationA linear imaging system with white additive Gaussian noise on the observed data is modeled as follows:
Supplementary Note Mathematcal bacground A lnear magng system wth whte addtve Gaussan nose on the observed data s modeled as follows: X = R ϕ V + G, () where X R are the expermental, two-dmensonal proecton
More informationStructure and Drive Paul A. Jensen Copyright July 20, 2003
Structure and Drve Paul A. Jensen Copyrght July 20, 2003 A system s made up of several operatons wth flow passng between them. The structure of the system descrbes the flow paths from nputs to outputs.
More informationOnline Appendix to: Axiomatization and measurement of Quasi-hyperbolic Discounting
Onlne Appendx to: Axomatzaton and measurement of Quas-hyperbolc Dscountng José Lus Montel Olea Tomasz Strzaleck 1 Sample Selecton As dscussed before our ntal sample conssts of two groups of subjects. Group
More informationTHE ROYAL STATISTICAL SOCIETY 2006 EXAMINATIONS SOLUTIONS HIGHER CERTIFICATE
THE ROYAL STATISTICAL SOCIETY 6 EXAMINATIONS SOLUTIONS HIGHER CERTIFICATE PAPER I STATISTICAL THEORY The Socety provdes these solutons to assst canddates preparng for the eamnatons n future years and for
More informationPolynomial Regression Models
LINEAR REGRESSION ANALYSIS MODULE XII Lecture - 6 Polynomal Regresson Models Dr. Shalabh Department of Mathematcs and Statstcs Indan Insttute of Technology Kanpur Test of sgnfcance To test the sgnfcance
More informationLearning Theory: Lecture Notes
Learnng Theory: Lecture Notes Lecturer: Kamalka Chaudhur Scrbe: Qush Wang October 27, 2012 1 The Agnostc PAC Model Recall that one of the constrants of the PAC model s that the data dstrbuton has to be
More informationCompiling for Parallelism & Locality. Example. Announcement Need to make up November 14th lecture. Last time Data dependences and loops
Complng for Parallelsm & Localty Announcement Need to make up November 14th lecture Last tme Data dependences and loops Today Fnsh data dependence analyss for loops CS553 Lecture Complng for Parallelsm
More information