CS 5114: Theory of Algorithms. Sorting. Insertion Sort. Exchange Sorting. Clifford A. Shaffer. Spring 2010
|
|
- Scot Grant
- 6 years ago
- Views:
Transcription
1 Depatment of Compute Science Viginia Tech Backsbug, Viginia Copyight c 10 by Ciffod A. Shaffe : Theoy of Agoithms Tite page : Theoy of Agoithms Ciffod A. Shaffe Sping 10 Ciffod A. Shaffe Depatment of Compute Science Viginia Tech Backsbug, Viginia Sping 10 Copyight c 10 by Ciffod A. Shaffe : Theoy of Agoithms Sping 10 1 / 31 Soting Each ecod contains a fied caed the key. Linea ode: compaison. Soting Linea ode means: a < b and b < c a < c. Soting Each ecod contains a fied caed the key. Linea ode: compaison. The Soting Pobem Given a sequence of ecods R1, R,..., Rn with key vaues k1, k,..., kn, espectivey, aange the ecods into any ode s such that ecods Rs 1, Rs,..., Rsn have keys obeying the popety ks 1 ks... ksn. Measues of cost: Compaisons Swaps The Soting Pobem Moe simpy, soting means to put keys in ascending ode. Given a sequence of ecods R 1, R,..., R n with key vaues k 1, k,..., k n, espectivey, aange the ecods into any ode s such that ecods R s1, R s,..., R sn have keys obeying the popety k s1 k s... k sn. Measues of cost: Compaisons Swaps : Theoy of Agoithms Sping 10 / 31 Insetion Sot void inssoteem* A, int n) { // Insetion Sot fo int ; i<n; i++) // Inset i th ecod fo int j=i; j>0) && A[j].key<A[j-1].key); j--) swapa, j, j-1); Best Case: Wost Case: Aveage Case: : Theoy of Agoithms Sping 10 3 / 31 Exchange Soting Insetion Sot Best case is 0 swaps, n 1 compaisons. Wost case is n / swaps and compaes. Aveage case is n /4 swaps and compaes. Insetion sot has geat best-case pefomance. Exchange Soting Insetion Sot void inssoteem* A, int n) { // Insetion Sot fo int ; i<n; i++) // Inset i th ecod fo int j=i; j>0) && A[j].key<A[j-1].key); j--) swapa, j, j-1); Best Case: Wost Case: Aveage Case: Exchange Soting Theoem: Any sot esticted to swapping adjacent ecods must be Ωn ) in the wost and aveage cases. Poof: Fo any pemutation P, and any pai of positions i and j, the eative ode of i and j must be wong in eithe P o the invese of P. Thus, the tota numbe of swaps equied by P and the invese of P MUST be i = nn 1). Theoem: Any sot esticted to swapping adjacent ecods must be Ωn ) in the wost and aveage cases. Poof: Fo any pemutation P, and any pai of positions i and j, the eative ode of i and j must be wong in eithe P o the invese of P. Thus, the tota numbe of swaps equied by P and the invese of P MUST be n /4 is the aveage distance fom a ecod to its position in the soted output. i = nn 1). : Theoy of Agoithms Sping 10 4 / 31
2 Initia Pass 1 Swap 1 Pass Swap Pass 3 Swap 3 Revese Swap Pivot = Pivot = Pivot = 57 Pivot = Pivot = Pivot = Fina Soted Aay Pivot = 88 Quicksot Divide and Conque: divide ist into vaues ess than pivot and vaues geate than pivot. void qsoteem* A, int i, int j) { // Quicksot int pivotindex = findpivota, i, j); swapa, pivotindex, j); // Swap to end // k wi be fist position in ight subaay int k = patitiona, i-1, j, A[j].key; swapa, k, j); // Put pivot in pace if k-i) > 1) qsota, i, k-1); // Sot eft if j-k) > 1) qsota, k+1, j); // Sot ight Quicksot Initia ca: qsotaay, 0, n-1); Quicksot Divide and Conque: divide ist into vaues ess than pivot and vaues geate than pivot. void qsoteem* A, int i, int j) { // Quicksot int pivotindex = findpivota, i, j); swapa, pivotindex, j); // Swap to end // k wi be fist position in ight subaay int k = patitiona, i-1, j, A[j].key; swapa, k, j); // Put pivot in pace if k-i) > 1) qsota, i, k-1); // Sot eft if j-k) > 1) qsota, k+1, j); // Sot ight int findpivoteem* A, int i, int j) { etun i+j)/; int findpivoteem* A, int i, int j) { etun i+j)/; : Theoy of Agoithms Sping 10 5 / 31 Quicksot Patition Quicksot Patition Quicksot Patition int patitioneem* A, int, int, int pivot) { do { // Move bounds inwad unti they meet whie A[++].key < pivot); // Move ight whie && A[--].key > pivot));// Left swapa,, ); // Swap out-of-pace vas whie < ); // Stop when they coss swapa,, ); // Revese wasted swap etun ; // Retun fist position in ight The cost fo Patition is Θn). int patitioneem* A, int, int, int pivot) { do { // Move bounds inwad unti they meet whie A[++].key < pivot); // Move ight whie && A[--].key > pivot));// Left swapa,, ); // Swap out-of-pace vas whie < ); // Stop when they coss swapa,, ); // Revese wasted swap etun ; // Retun fist position in ight The cost fo Patition is Θn). : Theoy of Agoithms Sping 10 / 31 Patition Exampe Patition Exampe Patition Exampe Initia Pass Swap Pass Swap Pass Swap Revese Swap : Theoy of Agoithms Sping 10 7 / 31 Quicksot Exampe Quicksot Exampe Quicksot Exampe Pivot = Pivot = Pivot = Pivot = Pivot = 88 Pivot = Pivot = Fina Soted Aay : Theoy of Agoithms Sping 10 8 / 31
3 n+1 Cost fo Quicksot Best Case: Aways patition in haf. Wost Case: Bad patition. Aveage Case: fn) = n fi) + fn i 1)) n Optimizations fo Quicksot: Bette pivot. Use bette agoithm fo sma subists. Eiminate ecusion. Best: Don t sot sma ists and just use insetion sot at the end. : Theoy of Agoithms Sping 10 9 / 31 Quicksot Aveage Cost fn) = n n fi) + fn i 1)) n > 1 Since the two haves of the summation ae identica, fn) = n 1 + n fi) n > 1 Mutipying both sides by n yieds nfn) = nn 1) + fi). Cost fo Quicksot Cost fo Quicksot Best Case: Aways patition in haf. Wost Case: Bad patition. Aveage Case: fn) = n n fi) + fn i 1)) Optimizations fo Quicksot: Bette pivot. Use bette agoithm fo sma subists. Eiminate ecusion. Best: Don t sot sma ists and just use insetion sot at the end. Think about when the patition is bad. Note the FindPivot function that we used is petty good, especiay compaed to taking the fist o ast) vaue. Aso, think about the distibution of costs: Line up a the pemuations fom most expensive to cheapest. How many can be expensive? The aea unde this cuve must be ow, since the aveage cost is Θn og n), but some of the vaues cost Θn ). So thee can be VERY few of the expensive ones. This optimization means, fo ist theshod T, that no eement is moe than T positions fom its destination. Thus, insetion sot s best case is neay eaized. Cost is at wost nt. Quicksot Aveage Cost This is a ecuence with fu histoy. Think about what the pieces coespond to. To do Quicksot on an aay of size n, we must: Patation: Cost n Findpivot: Cost c fn) = Quicksot Aveage Cost n n fi) + fn i 1)) n > 1 Since the two haves of the summation ae identica, fn) = n 1 + n fi) n > 1 Mutipying both sides by n yieds nfn) = nn 1) + fi). Do the ecusion: Cost dependent on the pivot s fina position. These pats ae modeed by the equation, incuding the aveage ove a the cases fo position of the pivot. : Theoy of Agoithms Sping / 31 Aveage Cost cont.) Get id of the fu histoy by subtacting nfn) fom )f) Aveage Cost cont.) Aveage Cost cont.) Get id of the fu histoy by subtacting nfn) fom )f) nfn) = nn 1) + fi) )f) = )n + )f) nfn) = n + fn) n fi) )f) = n + n + )fn) n f) = + n + fn). nfn) = nn 1) + fi) )f) = )n + )f) nfn) = n + fn) n fi) )f) = n + n + )fn) f) = n + n + fn). : Theoy of Agoithms Sping / 31 Aveage Cost cont.) Aveage Cost cont.) Aveage Cost cont.) n Note that fo n 1. Expand the ecuence to get: f) + n + fn) = + n + + ) fn 1) = + n n )) fn ) n 1 = + n ) f1)) n Note that fo n 1. n+1 Expand the ecuence to get: f) + n + fn) = + n + + ) fn 1) = + n n n ) f1)) = + n + )) fn ) : Theoy of Agoithms Sping 10 1 / 31
4 Aveage Cost cont.) Aveage Cost cont.) Aveage Cost cont.) f) 1 + n + + n n + 3 ) 1 = 1 + n + ) + 1 n )) = +n + )Hn+1 1) = Θn og n). f) 1 + n + + n + = 1 + n + ) + n + = + n + )H n+1 1) n 3 + ) n )) H n+1 = Θog n) = Θn og n). : Theoy of Agoithms Sping 10 / 31 Megesot List megesotlist inist) { if inist.ength) <= 1) etun inist;; List 1 = haf of the items fom inist; List = othe haf of the items fom inist; etun megemegesot1), megesot)); Megesot Megesot List megesotlist inist) { if inist.ength) <= 1) etun inist;; List 1 = haf of the items fom inist; List = othe haf of the items fom inist; etun megemegesot1), megesot)); : Theoy of Agoithms Sping 10 / 31 Megesot Impementation 1) Megesot Impementation 1) Megesot Impementation 1) Megesot is ticky to impement. void megesoteem* A, Eem* temp, int eft, int ight) { int mid = eft+ight)/; if eft == ight) etun; // List of one megesota, temp, eft, mid); // Sot haf megesota, temp, mid+1, ight);// Sot haf fo int i=eft; i<=ight; i++) // Copy to temp temp[i] = A[i]; Megesot is ticky to impement. This impementation equies a second aay. void megesoteem* A, Eem* temp, int eft, int ight) { int mid = eft+ight)/; if eft == ight) etun; // List of one megesota, temp, eft, mid); // Sot haf megesota, temp, mid+1, ight);// Sot haf fo int i=eft; i<=ight; i++) // Copy to temp temp[i] = A[i]; : Theoy of Agoithms Sping 10 / 31 Megesot Impementation ) Megesot Impementation ) Megesot Impementation ) // Do the mege opeation back to aay int i1 = eft; int i = mid + 1; fo int cu=eft; cu<=ight; cu++) { if i1 == mid+1) // Left ist exhausted A[cu] = temp[i++]; ese if i > ight) // Right ist exhausted A[cu] = temp[i1++]; ese if temp[i1].key < temp[i].key) A[cu] = temp[i1++]; ese A[cu] = temp[i++]; Megesot cost: Megesot is good fo soting inked ists. // Do the mege opeation back to aay int i1 = eft; int i = mid + 1; fo int cu=eft; cu<=ight; cu++) { if i1 == mid+1) // Left ist exhausted A[cu] = temp[i++]; ese if i > ight) // Right ist exhausted A[cu] = temp[i1++]; ese if temp[i1].key < temp[i].key) A[cu] = temp[i1++]; ese A[cu] = temp[i++]; Megesot cost: Megesot is good fo soting inked ists. : Theoy of Agoithms Sping 10 1 / 31 Megesot cost: Θn og n) Linked ists: Send ecods to atenating inked ists, megesot each, then mege.
5 a) b) og n Heap: Compete binay tee with the Heap Popety: Min-heap: a vaues ess than chid vaues. Max-heap: a vaues geate than chid vaues. The vaues in a heap ae patiay odeed. Heap epesentation: nomay the aay based compete binay tee epesentation. Heap: Compete binay tee with the Heap Popety: Min-heap: a vaues ess than chid vaues. Max-heap: a vaues geate than chid vaues. The vaues in a heap ae patiay odeed. Heap epesentation: nomay the aay based compete binay tee epesentation. : Theoy of Agoithms Sping 10 / 31 Buiding the Heap Buiding the Heap Buiding the Heap a) equies exchanges 4-), 4-1), -1), 5-), 5-4), -3), -5), 7-5), 7-). b) equies exchanges 5-), 7-3), 7-1), -1) a) This is a Max Heap How to get a good numbe of exchanges? By induction. Heapify the oot s subtees, then push the oot to the coect eve b) a) equies exchanges 4-), 4-1), -1), 5-), 5-4), -3), -5), 7-5), 7-). b) equies exchanges 5-), 7-3), 7-1), -1). : Theoy of Agoithms Sping / 31 void heap::siftdownint pos) { // Sift ELEM down assetpos >= 0) && pos < n)); whie!isleafpos)) { int j = eftchidpos); if j<n-1)) && Heap[j].key < Heap[j+1].key)) j++; // j now index of chid with > vaue if Heap[pos].key >= Heap[j].key) etun; swapheap, pos, j); pos = j; // Move down void heap::siftdownint pos) { // Sift ELEM down assetpos >= 0) && pos < n)); whie!isleafpos)) { int j = eftchidpos); if j<n-1)) && Heap[j].key < Heap[j+1].key)) j++; // j now index of chid with > vaue if Heap[pos].key >= Heap[j].key) etun; swapheap, pos, j); pos = j; // Move down : Theoy of Agoithms Sping / 31 BuidHeap Fo fast heap constuction: Wok fom high end of aay to ow end. Ca siftdown fo each item. Don t need to ca siftdown on eaf nodes. void heap::buidheap) // Heapify contents { fo int i=n/-1; i>=0; i--) siftdowni); Cost fo heap constuction: BuidHeap Fo fast heap constuction: BuidHeap Wok fom high end of aay to ow end. Ca siftdown fo each item. Don t need to ca siftdown on eaf nodes. void heap::buidheap) // Heapify contents { fo int i=n/-1; i>=0; i--) siftdowni); Cost fo heap constuction: i 1) n n. i i 1) is numbe of steps down, n/ i is numbe of nodes at that eve. The intuition fo why this cost is Θn) is impotant. Fundamentay, the issue is that neay a nodes in a tee ae cose to the bottom, and we ae wost case) pushing a nodes down to the bottom. So most nodes have nowhee to go, eading to ow cost. og n i 1) n n. i : Theoy of Agoithms Sping 10 / 31
Searching & Sorting. Definitions of Search and Sort. Other forms of Linear Search. Linear Search. Week 11. Gaddis: 8, 19.6,19.8. CS 5301 Spring 2017
Searching & Sorting Week 11 Gaddis: 8, 19.6,19.8 CS 5301 Spring 2017 Ji Seaman 1 Definitions of Search and Sort Search: find a given item in a ist, return the position of the item, or -1 if not found.
More informationl Tree: set of nodes and directed edges l Parent: source node of directed edge l Child: terminal node of directed edge
Trees & Heaps Week 12 Gaddis: 20 Weiss: 21.1-3 CS 5301 Fa 2016 Ji Seaman 1 Tree: non-recursive definition Tree: set of nodes and directed edges - root: one node is distinguished as the root - Every node
More informationFinding point-pairs. Find Closest Point from Dense Cloud
Finding point-pais Given an a, find a coesponding b on the suface. Then one appoach would be to seach evey possible tiangle o suface point and then take the closest point. The key is to find a moe efficient
More informationLecture 27: Voronoi Diagrams
We say that two points u, v Y ae in the same connected component of Y if thee is a path in R N fom u to v such that all the points along the path ae in the set Y. (Thee ae two connected components in the
More informationSearching & Sorting. Definitions of Search and Sort. Other forms of Linear Search. Linear Search. Week 11. Gaddis: 8, 19.6,19.8.
Searching & Sorting Week 11 Gaddis: 8, 19.6,19.8 CS 5301 Fa 2017 Ji Seaman 1 Definitions of Search and Sort Search: find a given item in a ist, return the position of the item, or -1 if not found. Sort:
More informationMapReduce Optimizations and Algorithms 2015 Professor Sasu Tarkoma
apreduce Optimizations and Algoithms 2015 Pofesso Sasu Takoma www.cs.helsinki.fi Optimizations Reduce tasks cannot stat befoe the whole map phase is complete Thus single slow machine can slow down the
More informationHow many times is the loop executed? middle = (left+right)/2; if (value == arr[middle]) return true;
This lectue Complexity o binay seach Answes to inomal execise Abstact data types Stacks ueues ADTs, Stacks, ueues 1 binayseach(int[] a, int value) { while (ight >= let) { { i (value < a[middle]) ight =
More informationLayer Partition-based Matching Algorithm of DDM
Laye Patition-based Matching Agoithm of DDM Nwe Nwe Myint Thein, and Nay Min Tun Abstact High Leve Achitectue (HLA) is achitectue fo euse and inteopeation of simuations. In HLA paadigm, the Runtime Infastuctue
More informationPerfect Bayesian Equilibrium in Extensive- Form Games Ù
Pefect Bayesian Equiibium in Extensive-Fom Games Page Pefect Bayesian Equiibium in Extensive- Fom Games Ù Intoduction Bayes Requiement Bayes Requiement Bayes Requiement 5 Bayes Requiement 4 6 A Refinement
More informationInformation Retrieval. CS630 Representing and Accessing Digital Information. IR Basics. User Task. Basic IR Processes
CS630 Repesenting and Accessing Digital Infomation Infomation Retieval: Basics Thosten Joachims Conell Univesity Infomation Retieval Basics Retieval Models Indexing and Pepocessing Data Stuctues ~ 4 lectues
More informationSearching, Sorting & Analysis
Searching, Sorting & Anaysis Unit 2 Chapter 8 CS 2308 Fa 2018 Ji Seaman 1 Definitions of Search and Sort Search: find a given item in an array, return the index of the item, or -1 if not found. Sort: rearrange
More informationDYNAMIC STORAGE ALLOCATION. Hanan Samet
ds0 DYNAMIC STORAGE ALLOCATION Hanan Samet Compute Science Depatment and Cente fo Automation Reseach and Institute fo Advanced Compute Studies Univesity of Mayland College Pak, Mayland 07 e-mail: hjs@umiacs.umd.edu
More informationJournal of World s Electrical Engineering and Technology J. World. Elect. Eng. Tech. 1(1): 12-16, 2012
2011, Scienceline Publication www.science-line.com Jounal of Wold s Electical Engineeing and Technology J. Wold. Elect. Eng. Tech. 1(1): 12-16, 2012 JWEET An Efficient Algoithm fo Lip Segmentation in Colo
More informationEmbeddings into Crossed Cubes
Embeddings into Cossed Cubes Emad Abuelub *, Membe, IAENG Abstact- The hypecube paallel achitectue is one of the most popula inteconnection netwoks due to many of its attactive popeties and its suitability
More informationConcomitants of Upper Record Statistics for Bivariate Pseudo Weibull Distribution
Available at http://pvamuedu/aam Appl Appl Math ISSN: 93-9466 Vol 5, Issue (Decembe ), pp 8 9 (Peviously, Vol 5, Issue, pp 379 388) Applications and Applied Mathematics: An Intenational Jounal (AAM) Concomitants
More informationRANDOM IRREGULAR BLOCK-HIERARCHICAL NETWORKS: ALGORITHMS FOR COMPUTATION OF MAIN PROPERTIES
RANDOM IRREGULAR BLOCK-HIERARCHICAL NETWORKS: ALGORITHMS FOR COMPUTATION OF MAIN PROPERTIES Svetlana Avetisyan Mikayel Samvelyan* Matun Kaapetyan Yeevan State Univesity Abstact In this pape, the class
More informationFACE VECTORS OF FLAG COMPLEXES
FACE VECTORS OF FLAG COMPLEXES ANDY FROHMADER Abstact. A conjectue of Kalai and Eckhoff that the face vecto of an abitay flag complex is also the face vecto of some paticula balanced complex is veified.
More informationDYNAMIC STORAGE ALLOCATION. Hanan Samet
ds0 DYNAMIC STORAGE ALLOCATION Hanan Samet Compute Science Depatment and Cente fo Automation Reseach and Institute fo Advanced Compute Studies Univesity of Mayland College Pak, Mayland 074 e-mail: hjs@umiacs.umd.edu
More informationData Structure Lecture#17: Internal Sorting 2 (Chapter 7) U Kang Seoul National University
Data Structure Lecture#17: Internal Sorting 2 (Chapter 7) U Kang Seoul National University U Kang 1 In This Lecture Main ideas and analysis of Merge sort Main ideas and analysis of Quicksort U Kang 2 Merge
More information2D Transformations. Why Transformations. Translation 4/17/2009
4/7/9 D Tansfomations Wh Tansfomations Coodinate sstem tansfomations Placing objects in the wold Move/animate the camea fo navigation Dawing hieachical chaactes Animation Tanslation + d 5,4 + d,3 d 4,
More informationIP Network Design by Modified Branch Exchange Method
Received: June 7, 207 98 IP Netwok Design by Modified Banch Method Kaiat Jaoenat Natchamol Sichumoenattana 2* Faculty of Engineeing at Kamphaeng Saen, Kasetsat Univesity, Thailand 2 Faculty of Management
More informationarxiv: v4 [cs.ds] 7 Feb 2018
Dynamic DFS in Undiected Gaphs: beaking the O(m) baie Suende Baswana Sheejit Ray Chaudhuy Keeti Choudhay Shahbaz Khan axiv:1502.02481v4 [cs.ds] 7 Feb 2018 Depth fist seach (DFS) tee is a fundamental data
More informationClass 21. N -body Techniques, Part 4
Class. N -body Techniques, Pat Tee Codes Efficiency can be inceased by gouping paticles togethe: Neaest paticles exet geatest foces diect summation. Distant paticles exet smallest foces teat in goups.
More informationUNION FIND. naïve linking link-by-size link-by-rank path compression link-by-rank with path compression context. An Improved Equivalence Algorithm
Disjoint-sets data type Lectue slides by Kevin Wayne Copyight 5 Peason-Addison Wesley http://www.cs.pinceton.edu/~wayne/kleinbeg-tados UNION FIND naïve linking link-by-size link-by-ank path compession
More informationStrongly Connected Components. Uses for SCC s. Two Simple SCC Algorithms. Directed Acyclic Graphs
CSE Intoduction to Algoithms Depth Fist Seach and Stongly Connected Components W.L. Ruzzo, Summe 00 Undiected Depth-Fist Seach It s not just fo tees DFS() back edge tee edge if maked then etun; mak ; #
More informationThis lecture. Abstract Data Types (ADTs) The Stack ADT ( 4.2) Stacks. Stack Interface in Java. Exceptions. Abstract data types Stacks Queues
This lectue Abstact data types Stacks ueues Abstact Data Types (ADTs) An abstact data type (ADT) is an abstaction o a data stuctue An ADT speciies: Data stoed Opeations on the data Eo conditions associated
More informationThe Java Virtual Machine. Compiler construction The structure of a frame. JVM stacks. Lecture 2
Compile constuction 2009 Lectue 2 Code geneation 1: Geneating code The Java Vitual Machine Data types Pimitive types, including intege and floating-point types of vaious sizes and the boolean type. The
More informationShortest Paths for a Two-Robot Rendez-Vous
Shotest Paths fo a Two-Robot Rendez-Vous Eik L Wyntes Joseph S B Mitchell y Abstact In this pape, we conside an optimal motion planning poblem fo a pai of point obots in a plana envionment with polygonal
More informationFunctions. 6.1 Modular Programming. 6.2 Defining and Calling Functions. Gaddis: 6.1-5,7-10,13,15-16 and 7.7
Functions Unit 6 Gaddis: 6.1-5,7-10,13,15-16 and 7.7 CS 1428 Spring 2018 Ji Seaman 6.1 Moduar Programming Moduar programming: breaking a program up into smaer, manageabe components (modues) Function: a
More informationTopic -3 Image Enhancement
Topic -3 Image Enhancement (Pat 1) DIP: Details Digital Image Pocessing Digital Image Chaacteistics Spatial Spectal Gay-level Histogam DFT DCT Pe-Pocessing Enhancement Restoation Point Pocessing Masking
More informationExtensive games with imperfect information
Extensive games with impefect infomation ECON500 Advanced micoeconomics ectues in game theoy Fall 0, Pat 3 7.07.0 G.. Asheim, ECON500-3 Incomplete Complete infomation infomation Pefect infomation Impefect
More informationUndirected Depth-First Search. CSE 421 Introduction to Algorithms. Undirected Depth-First Search. Directed Depth First Search
CSE Intoduction to Algoithms Undiected Depth-Fist Seach It s not just fo tees Depth Fist Seach and Stongly Connected Components DFS() back edge tee edge if maked then etun; mak ; # := ++count; fo all edges
More informationMonte Carlo Techniques for Rendering
Monte Calo Techniques fo Rendeing CS 517 Fall 2002 Compute Science Conell Univesity Announcements No ectue on Thusday Instead, attend Steven Gotle, Havad Upson Hall B17, 4:15-5:15 (efeshments ealie) Geomety
More informationIllumination methods for optical wear detection
Illumination methods fo optical wea detection 1 J. Zhang, 2 P.P.L.Regtien 1 VIMEC Applied Vision Technology, Coy 43, 5653 LC Eindhoven, The Nethelands Email: jianbo.zhang@gmail.com 2 Faculty Electical
More informationdc - Linux Command Dc may be invoked with the following command-line options: -V --version Print out the version of dc
- CentOS 5.2 - Linux Uses Guide - Linux Command SYNOPSIS [-V] [--vesion] [-h] [--help] [-e sciptexpession] [--expession=sciptexpession] [-f sciptfile] [--file=sciptfile] [file...] DESCRIPTION is a evese-polish
More informationEfficient Maximal Poisson-Disk Sampling
Efficient Maximal Poisson-Disk Sampling Mohamed S. Ebeida Sandia National Laboatoies Andew A. Davidson Univesity of Califonia, Davis Anjul Patney Univesity of Califonia, Davis Patick M. Knupp Sandia National
More informationLecture 8 Introduction to Pipelines Adapated from slides by David Patterson
Lectue 8 Intoduction to Pipelines Adapated fom slides by David Patteson http://www-inst.eecs.bekeley.edu/~cs61c/ * 1 Review (1/3) Datapath is the hadwae that pefoms opeations necessay to execute pogams.
More informationSeparability and Topology Control of Quasi Unit Disk Graphs
Sepaability and Topology Contol of Quasi Unit Disk Gaphs Jiane Chen, Anxiao(Andew) Jiang, Iyad A. Kanj, Ge Xia, and Fenghui Zhang Dept. of Compute Science, Texas A&M Univ. College Station, TX 7784. {chen,
More informationCOSC 6385 Computer Architecture. - Pipelining
COSC 6385 Compute Achitectue - Pipelining Sping 2012 Some of the slides ae based on a lectue by David Culle, Pipelining Pipelining is an implementation technique wheeby multiple instuctions ae ovelapped
More informationLecture # 04. Image Enhancement in Spatial Domain
Digital Image Pocessing CP-7008 Lectue # 04 Image Enhancement in Spatial Domain Fall 2011 2 domains Spatial Domain : (image plane) Techniques ae based on diect manipulation of pixels in an image Fequency
More informationOPTIMAL KINEMATIC SYNTHESIS OF CRANK & SLOTTED LEVER QUICK RETURN MECHANISM FOR SPECIFIC STROKE & TIME RATIO
OPTIMAL KINEMATIC SYNTHESIS OF CRANK & SLOTTED LEVER QUICK RETURN MECHANISM FOR SPECIFIC STROKE & TIME RATIO Zeeshan A. Shaikh 1 and T.Y. Badguja 2 1,2 Depatment of Mechanical Engineeing, Late G. N. Sapkal
More informationParametric Query Optimization for Linear and Piecewise Linear Cost Functions
Paametic Quey Oimization fo Linea and Piecewise Linea Cost Functions Avind Hulgei S. Sudashan Indian Institute of Technology, Bombay {au, sudasha}@cse.iitb.ac.in Abstact The of a quey an depends on many
More informationOn the Conversion between Binary Code and Binary-Reflected Gray Code on Boolean Cubes
On the Convesion between Binay Code and BinayReflected Gay Code on Boolean Cubes The Havad community has made this aticle openly available. Please shae how this access benefits you. You stoy mattes Citation
More informationReader & ReaderT Monad (11A) Young Won Lim 8/20/18
Copyight (c) 2016-2018 Young W. Lim. Pemission is ganted to copy, distibute and/o modify this document unde the tems of the GNU Fee Documentation License, Vesion 1.2 o any late vesion published by the
More informationImage Enhancement in the Spatial Domain. Spatial Domain
8-- Spatial Domain Image Enhancement in the Spatial Domain What is spatial domain The space whee all pixels fom an image In spatial domain we can epesent an image by f( whee x and y ae coodinates along
More informationCommunication vs Distributed Computation: an alternative trade-off curve
Communication vs Distibuted Computation: an altenative tade-off cuve Yahya H. Ezzeldin, Mohammed amoose, Chistina Fagouli Univesity of Califonia, Los Angeles, CA 90095, USA, Email: {yahya.ezzeldin, mkamoose,
More informationART GALLERIES WITH INTERIOR WALLS. March 1998
ART GALLERIES WITH INTERIOR WALLS Andé Kündgen Mach 1998 Abstact. Conside an at galley fomed by a polygon on n vetices with m pais of vetices joined by inteio diagonals, the inteio walls. Each inteio wall
More informationConversion Functions for Symmetric Key Ciphers
Jounal of Infomation Assuance and Secuity 2 (2006) 41 50 Convesion Functions fo Symmetic Key Ciphes Deba L. Cook and Angelos D. Keomytis Depatment of Compute Science Columbia Univesity, mail code 0401
More informationA Memory Efficient Array Architecture for Real-Time Motion Estimation
A Memoy Efficient Aay Achitectue fo Real-Time Motion Estimation Vasily G. Moshnyaga and Keikichi Tamau Depatment of Electonics & Communication, Kyoto Univesity Sakyo-ku, Yoshida-Honmachi, Kyoto 66-1, JAPAN
More informationModule 6 STILL IMAGE COMPRESSION STANDARDS
Module 6 STILL IMAE COMPRESSION STANDARDS Lesson 17 JPE-2000 Achitectue and Featues Instuctional Objectives At the end of this lesson, the students should be able to: 1. State the shotcomings of JPE standad.
More informationl A set is a collection of objects of the same l {6,9,11,-5} and {11,9,6,-5} are equivalent. l There is no first element, and no successor of 9.
Sets & Hash Tabes Week 13 Weiss: chapter 20 CS 5301 Spring 2018 What are sets? A set is a coection of objects of the same type that has the foowing two properties: - there are no dupicates in the coection
More informationAlgorithm for siftdown(int currentposition) while true (infinite loop) do if the currentposition has NO children then return
0. How would we write the BinaryHeap siftdown function recursively? [0] 6 [1] [] 15 10 Name: template class BinaryHeap { private: int maxsize; int numitems; T * heap;... [3] [4] [5] [6] 114 0
More informationTESSELLATIONS. This is a sample (draft) chapter from: MATHEMATICAL OUTPOURINGS. Newsletters and Musings from the St. Mark s Institute of Mathematics
TESSELLATIONS This is a sample (daft) chapte fom: MATHEMATICAL OUTPOURINGS Newslettes and Musings fom the St. Mak s Institute of Mathematics James Tanton www.jamestanton.com This mateial was and can still
More information4.2. Co-terminal and Related Angles. Investigate
.2 Co-teminal and Related Angles Tigonometic atios can be used to model quantities such as
More informationBinary Dissection: Variants & Applications
Binay Dissection: Vaiants & Applications Shahid H. Bokhai Depatment of Electical Engineeing Univesity of Engineeing & Technology Lahoe, Pakistan Thomas W. Cockett ICASE NASA Langley Reseach Cente Hampton,
More informationControlled Information Maximization for SOM Knowledge Induced Learning
3 Int'l Conf. Atificial Intelligence ICAI'5 Contolled Infomation Maximization fo SOM Knowledge Induced Leaning Ryotao Kamimua IT Education Cente and Gaduate School of Science and Technology, Tokai Univeisity
More informationEfficient Oblivious Parallel Sorting on the MasPar MP-1
Efficient Olivious Paallel Soting on the MasPa MP1 Klaus Bockmann Heinz Nixdof Institute Padeon Univesity 3395 Padeon, Gemany email: ockm@hniunipadeonde Rolf Wanka Intenational Compute Science Institute
More informationScaling Location-based Services with Dynamically Composed Location Index
Scaling Location-based Sevices with Dynamically Composed Location Index Bhuvan Bamba, Sangeetha Seshadi and Ling Liu Distibuted Data Intensive Systems Laboatoy (DiSL) College of Computing, Geogia Institute
More informationAny modern computer system will incorporate (at least) two levels of storage:
1 Any moden compute system will incopoate (at least) two levels of stoage: pimay stoage: andom access memoy (RAM) typical capacity 32MB to 1GB cost pe MB $3. typical access time 5ns to 6ns bust tansfe
More informationOn Cooperative Local Repair in Distributed Storage
On Coopeative Loca Repai in Distibuted Stoae Anit Sinh Rawat Depatment of ECE The Univesity of Texas at Austin Austin, TX 7871 Emai: anits@utexas.edu. Aya Mazumda Depatment of ECE Univesity of Minnesota
More informationAssessment of Track Sequence Optimization based on Recorded Field Operations
Assessment of Tack Sequence Optimization based on Recoded Field Opeations Matin A. F. Jensen 1,2,*, Claus G. Søensen 1, Dionysis Bochtis 1 1 Aahus Univesity, Faculty of Science and Technology, Depatment
More information(a, b) x y r. For this problem, is a point in the - coordinate plane and is a positive number.
Illustative G-C Simila cicles Alignments to Content Standads: G-C.A. Task (a, b) x y Fo this poblem, is a point in the - coodinate plane and is a positive numbe. a. Using a tanslation and a dilation, show
More informationIntroduction to Medical Imaging. Cone-Beam CT. Introduction. Available cone-beam reconstruction methods: Our discussion:
Intoduction Intoduction to Medical Imaging Cone-Beam CT Klaus Muelle Available cone-beam econstuction methods: exact appoximate Ou discussion: exact (now) appoximate (next) The Radon tansfom and its invese
More informationGravitational Shift for Beginners
Gavitational Shift fo Beginnes This pape, which I wote in 26, fomulates the equations fo gavitational shifts fom the elativistic famewok of special elativity. Fist I deive the fomulas fo the gavitational
More informationCache Memory and Performance
Cache Memo and Pefomance Code and Caches 1 Man of the following slides ae taken with pemission fom Complete Powepoint Lectue Notes fo Compute Sstems: A Pogamme's Pespective (CS:APP) Randal E. Bant and
More informationKeith Dalbey, PhD. Sandia National Labs, Dept 1441 Optimization & Uncertainty Quantification
SAND 0-50 C Effective & Efficient Handling of Ill - Conditioned Coelation atices in Kiging & adient Enhanced Kiging Emulatos hough Pivoted Cholesky Factoization Keith Dalbey, PhD Sandia National Labs,
More informationLecture Topics ECE 341. Lecture # 12. Control Signals. Control Signals for Datapath. Basic Processing Unit. Pipelining
EE 341 Lectue # 12 Instucto: Zeshan hishti zeshan@ece.pdx.edu Novembe 10, 2014 Potland State Univesity asic Pocessing Unit ontol Signals Hadwied ontol Datapath contol signals Dealing with memoy delay Pipelining
More informationModeling a shared medium access node with QoS distinction
Modeling a shaed medium access node with QoS distinction Matthias Gies, Jonas Geutet Compute Engineeing and Netwoks Laboatoy (TIK) Swiss Fedeal Institute of Technology Züich CH-8092 Züich, Switzeland email:
More informationCENG 3420 Computer Organization and Design. Lecture 07: MIPS Processor - II. Bei Yu
CENG 3420 Compute Oganization and Design Lectue 07: MIPS Pocesso - II Bei Yu CEG3420 L07.1 Sping 2016 Review: Instuction Citical Paths q Calculate cycle time assuming negligible delays (fo muxes, contol
More informationPoint-Biserial Correlation Analysis of Fuzzy Attributes
Appl Math Inf Sci 6 No S pp 439S-444S (0 Applied Mathematics & Infomation Sciences An Intenational Jounal @ 0 NSP Natual Sciences Publishing o Point-iseial oelation Analysis of Fuzzy Attibutes Hao-En hueh
More informationCS S-02 Algorithm Analysis 1
CS245-2008S-02 Algorithm Analysis 1 02-0: Algorithm Analysis When is algorithm A better than algorithm B? 02-1: Algorithm Analysis When is algorithm A better than algorithm B? Algorithm A runs faster 02-2:
More informationTufts University Math 13 Department of Mathematics November 14, :00 noon to 1:20 pm
Tufts Univesit Math 3 Depatment of Mathematics Novembe, Eam : noon to : pm Instuctions: No calculatos, notes o books ae allowed. Unless othewise stated, ou must show all wok to eceive full cedit. Simplif
More informationDistributed Dynamic Capacity Contracting: An overlay congestion pricing framework for differentiated-services architecture
Distibuted Dynamic apacity ontacting: An oveay congestion picing famewok fo diffeentiated-sevices achitectue Muat Yukse Shivkuma Kayanaaman Anuj Goe Rensseae Poytechnic Institute oy NY yuksem@cspiedu shivkuma@ecsepiedu
More informationISyE 4256 Industrial Robotic Applications
ISyE 456 Industial Robotic Applications Quiz # Oct. 9, 998 Name This is a closed book, closed notes exam. Show wok fo poblem questions ) ( pts) Please cicle one choice fo each item. a) In an application,
More information9.3 Volume of Spheres
? LESSON 9. Volume of Sphees ESSENTIAL QUESTION How do you find the volume of a sphee? Expessions, equations, and elationships Solve poblems involving the volume of sphees. EXPLORE ACTIVITY Modeling the
More information2. PROPELLER GEOMETRY
a) Fames of Refeence 2. PROPELLER GEOMETRY 10 th Intenational Towing Tank Committee (ITTC) initiated the pepaation of a dictionay and nomenclatue of ship hydodynamic tems and this wok was completed in
More informationTowards Adaptive Information Merging Using Selected XML Fragments
Towads Adaptive Infomation Meging Using Selected XML Fagments Ho-Lam Lau and Wilfed Ng Depatment of Compute Science and Engineeing, The Hong Kong Univesity of Science and Technology, Hong Kong {lauhl,
More informationwhere f(x, y): input image, g(x, y): processed image, and T: operator Or: s = T(r), where r: input pixel, and s: output pixel
3 Intenit Tanfomation and Spatial Filteing - Intenit tanfomation Change the intenit of each piel in ode to enhance the image: g, T[f, ], whee f, : input image, g, : poceed image, and T: opeato O: T, whee
More informationPledge: Signature:
S/PM 0 Final Exam 7 May 005 Name: KEY E-mail ID: @viginia.edu Pledge: Signatue: Thee ae 80 minutes 3 hous fo this exam and 80 oints on the test; don t send too long on any one uestion! Thee is an exam
More informationAn Unsupervised Segmentation Framework For Texture Image Queries
An Unsupevised Segmentation Famewok Fo Textue Image Queies Shu-Ching Chen Distibuted Multimedia Infomation System Laboatoy School of Compute Science Floida Intenational Univesity Miami, FL 33199, USA chens@cs.fiu.edu
More informationSORTING IN SPACE HANAN SAMET
SORTING IN SPACE HANAN SAMET COMPUTER SCIENCE DEPARTMENT AND CENTER FOR AUTOMATION RESEARCH AND INSTITUTE FOR ADVANCED COMPUTER STUDIES UNIVERSITY OF MARYLAND COLLEGE PARK, MARYLAND 074-4 USA e mail: hjs@cs.umd.edu
More informationThe International Conference in Knowledge Management (CIKM'94), Gaithersburg, MD, November 1994.
The Intenational Confeence in Knowledge Management (CIKM'94), Gaithesbug, MD, Novembe 994. Hashing by Poximity to Pocess Duplicates in Spatial Databases Walid G. Aef Matsushita Infomation Technology Laboatoy
More informationA Novel Automatic White Balance Method For Digital Still Cameras
A Novel Automatic White Balance Method Fo Digital Still Cameas Ching-Chih Weng 1, Home Chen 1,2, and Chiou-Shann Fuh 3 Depatment of Electical Engineeing, 2 3 Gaduate Institute of Communication Engineeing
More informationAn Extension to the Local Binary Patterns for Image Retrieval
, pp.81-85 http://x.oi.og/10.14257/astl.2014.45.16 An Extension to the Local Binay Pattens fo Image Retieval Zhize Wu, Yu Xia, Shouhong Wan School of Compute Science an Technology, Univesity of Science
More informationSpecial Edition Using Microsoft Excel Selecting and Naming Cells and Ranges
Specia Edition Using Microsoft Exce 2000 - Lesson 3 - Seecting and Naming Ces and.. Page 1 of 8 [Figures are not incuded in this sampe chapter] Specia Edition Using Microsoft Exce 2000-3 - Seecting and
More informationComputational and Theoretical Analysis of Null Space and Orthogonal Linear Discriminant Analysis
Jounal of Machine Leaning Reseach 7 2006) 1183 1204 Submitted 12/05; Revised 3/06; Published 7/06 Computational and Theoetical Analysis of Null Space and Othogonal Linea Disciminant Analysis Jieping Ye
More informationTopic 4 Root Finding
Couse Instucto D. Ramond C. Rump Oice: A 337 Phone: (915) 747 6958 E Mail: cump@utep.edu Topic 4 EE 4386/531 Computational Methods in EE Outline Intoduction Backeting Methods The Bisection Method False
More informationFifth Wheel Modelling and Testing
Fifth heel Modelling and Testing en Masoy Mechanical Engineeing Depatment Floida Atlantic Univesity Boca aton, FL 4 Lois Malaptias IFMA Institut Fancais De Mechanique Advancee ampus De lemont Feand Les
More informationAlso available at ISSN (printed edn.), ISSN (electronic edn.) ARS MATHEMATICA CONTEMPORANEA 3 (2010)
Also available at http://amc.imfm.si ISSN 1855-3966 (pinted edn.), ISSN 1855-3974 (electonic edn.) ARS MATHEMATICA CONTEMPORANEA 3 (2010) 109 120 Fulleene patches I Jack E. Gave Syacuse Univesity, Depatment
More informationModelling, simulation, and performance analysis of a CAN FD system with SAE benchmark based message set
Modelling, simulation, and pefomance analysis of a CAN FD system with SAE benchmak based message set Mahmut Tenuh, Panagiotis Oikonomidis, Peiklis Chachalakis, Elias Stipidis Mugla S. K. Univesity, TR;
More informationSegmentation Based Recovery of Arbitrarily Warped Document Images
Segmentation Based Recovey of Abitaiy Waped Document Images B. Gatos, I. Patikakis and K. Ntiogiannis Computationa Inteigence Laboatoy, Institute of Infomatics and Teecommunications, Nationa Cente fo Scientific
More informationCS-184: Computer Graphics. Today. Lecture #5: 3D Transformations and Rotations. Transformations in 3D Rotations
CS-184: Compute Gaphics Lectue #5: 3D Tansfomations and Rotations Pof. James O Bien Univesity of Califonia, Bekeley V2009-F-05-1.0 Today Tansfomations in 3D Rotations Matices Eule angles Eponential maps
More informationl A set is a collection of objects of the same l {6,9,11,-5} and {11,9,6,-5} are equivalent. l There is no first element, and no successor of 9.
Sets & Hash Tabes Week 13 Weiss: chapter 20 CS 5301 Fa 2017 What are sets? A set is a coection of objects of the same type that has the foowing two properties: - there are no dupicates in the coection
More informationThe Processor: Improving Performance Data Hazards
The Pocesso: Impoving Pefomance Data Hazads Monday 12 Octobe 15 Many slides adapted fom: and Design, Patteson & Hennessy 5th Edition, 2014, MK and fom Pof. May Jane Iwin, PSU Summay Pevious Class Pipeline
More informationA New Finite Word-length Optimization Method Design for LDPC Decoder
A New Finite Wod-length Optimization Method Design fo LDPC Decode Jinlei Chen, Yan Zhang and Xu Wang Key Laboatoy of Netwok Oiented Intelligent Computation Shenzhen Gaduate School, Habin Institute of Technology
More informationOutput Primitives. Ellipse Drawing
Output Pimitives Ellipse Dawing Ellipses. An ellipses is an elongated cicle and can be dawn with modified cicle dawing algoithm.. An ellipse has set of fied points (foci) that will have a constant total
More informationConservation Law of Centrifugal Force and Mechanism of Energy Transfer Caused in Turbomachinery
Poceedings of the 4th WSEAS Intenational Confeence on luid Mechanics and Aeodynamics, Elounda, Geece, August 1-3, 006 (pp337-34) Consevation Law of Centifugal oce and Mechanism of Enegy Tansfe Caused in
More informationMonitors. Lecture 6. A Typical Monitor State. wait(c) Signal and Continue. Signal and What Happens Next?
Monitos Lectue 6 Monitos Summay: Last time A combination of data abstaction and mutual exclusion Automatic mutex Pogammed conditional synchonisation Widely used in concuent pogamming languages and libaies
More informationA modal estimation based multitype sensor placement method
A modal estimation based multitype senso placement method *Xue-Yang Pei 1), Ting-Hua Yi 2) and Hong-Nan Li 3) 1),)2),3) School of Civil Engineeing, Dalian Univesity of Technology, Dalian 116023, China;
More informationIntroduction to the Stack. Stacks and Queues. Stack Operations. Stack illustrated. elements of the same type. Week 9. Gaddis: Chapter 18
Stacks and Queues Week 9 Gaddis: Chapter 18 CS 5301 Spring 2017 Ji Seaman Introduction to the Stack Stack: a data structure that hods a coection of eements of the same type. - The eements are accessed
More information