A NOTE ON COARSE GRAINED PARALLEL INTEGER SORTING
|
|
- Anne Marshall
- 5 years ago
- Views:
Transcription
1 Chater 26 A NOTE ON COARSE GRAINED PARALLEL INTEGER SORTING A. Cha ad F. Dehe School of Comuter Sciece Carleto Uiversity Ottawa, Caada K1S 5B6 æ {acha,dehe}@scs.carleto.ca Abstract Keywords: We observe that for = ç, which is usually the case i ractice, there exists a very simle, determiistic, otimal coarse graied arallel iteger sortig algorithm with 24 commuicatio rouds (6 -relatios ad 18 -relatios), Oè=è memory er rocessor ad Oè=è local comutatio. Exerimetal data idicates that the algorithm has very good erformace i ractice. BSP, coarse graied arallel algorithms, iteger sortig INTRODUCTION Goodrich [4] reseted a determiistic sortig algorithm for the BSP [5] ad closely related CGM model [2, 3]. Give Oèè data items stored o a rocessor BSP/CGM, Oè=è data items er rocessor, these items ca be log sorted i Oè è commuicatio rouds (h-relatios), for h = æè=è, logèh+1è with Oè log è local comutatio, usig Oè=è memory er rocessor. For = ç æ log, æ é 0, Oè è = Oè1è. That is, for this case, the algorithm logèh+1è requires Oè1è commuicatio rouds. We are iterested i the roblem of sortig Oèè itegers i the rage 1;::: ; c, for fixed costat c, stored o a rocessor BSP/CGM, = data items er rocessor. The sort algorithm i [4] is based o Cole s merge sort [1]. The Oè log è local comutatio i [4] is due to a costat umber of local æ Research artially fuded by the Natural Scieces ad Egieerig Research Coucil of Caada. 261
2 262 HIGH PERFORMANCE COMPUTING SYMPOSIUM 1999 sorts. Hece, by alyig radix sort for the iteger case, it is easy to obtai Oè=è local comutatio without icreasig the umber of commuicatio rouds. I this aer we observe that for = ç, which is usually the case i ractice, there exists a very simle, determiistic, otimal BSP/CGM iteger sortig algorithm with 24 commuicatio rouds (6 -relatios ad 18 -relatios), Oè=è memory er rocessor ad Oè=è local comutatio. Exerimetal data idicates that the algorithm has very good erformace i ractice THE ALGORITHM We first reset a BSP/CGM iteger sortig algorithm for ç 2,which serves as our base case, ad the exted it to the case ç. The iteger sortig algorithm for ç 2, described ext, follows the well kow determiistic samle sort method combied with radix sort for the sequetial sortig stes. We are makig the algorithm descritios fairly detailed i order to allow a aalysis that icludes estimates of costat factors. Algorithms 1: Sortig itegers o a rocessors BSP/CGM with ç 2. Iut: itegers i the rage 1;::: ;Oè c è, for fixed costat c, stored o a rocessor BSP/CGM, = itegers er rocessor. ç 2. Outut: The itegers are ermuted ito sorted order. 1. Each rocessor sorts locally its = itegers, usig radix sort. 2. Each rocessor selects from its locally sorted itegers a samle of itegers with raks i, 2 0 ç i ç, 1. We refer to these selected itegers as local samles. All local samles are set to rocessor P 1. (Note that P 1 is to receive i total 2 itegers. This is ossible sice ç 2.) 3. P 1 sorts the 2 local samles received i Ste 2 (usig radix sort) ad selects a samle of itegers with raks i, 0 ç i ç, 1. We refer to these selected itegers as the global samles. The global samles are the broadcast to all rocessors. 4. Based o the received global samles, each rocessor P i artitios its = itegers ito buckets B i;1 ;::: ;B i; where B i; are the local itegers with value betwee the è, 1è-th ad -th global samle. 5. I oe (combied) h-relatio, every rocessor P i, 1 ç i ç, seds B i; to rocessor P, 1 ç ç. Let R be the set of itegers received by rocessor P, 1 ç ç,adletr i = R i. 6. Every rocessor P i, 1 ç i ç, locally sorts R i usig radix sort.
3 Coarse Graied Parallel Iteger Sortig A global balacig shift oeratio which distributes all itegers evely amog the rocessors without chagig their order is erformed as follows: Every rocessor P i, 1 ç i ç, seds r i to P 1. Processor P 1 calculates for each P a array A of umbers idicatig how may of its itegers have to be moved to the resective rocessors. I oe h-relatio, every A is set to P, 1 ç i ç. The balacig shift is the erformed i a subsequet sigle h-relatio accordig to the A values. ed of Algorithm Theorem 1 Algorithm 1 sorts itegers i the rage 1;::: ;Oè c è, for fixed costat c, storedoa rocessor BSP/CGM, = itegers er rocessor, ç 2, usig 6 commuicatio rouds (2 -relatios ad 4 2 -relatios), Oè è local memory er rocessor, ad Oè è local comutatio. Proof. Correctess: The algorithm follows the well kow determiistic samle sort method combied with radix sort for the sequetial sortig stes. Let S i; be the set of itegers o P i, at the ed of Ste 1, with rak betwee 2 ad è +1è, 2 0 ç ç, 1. The mai observatio is that each R k cotais at most 3 sets S i;. Comlexity: The local memory ad local comutatio are bouded by the sequetial local radix sorts. For the commuicatio, we observe that Stes 2 ad 3 require oe 2 -relatio, each, Ste 5 requires oe -relatio, ad Ste 7 requires two 2 -relatios ad oe -relatio. 2 We ow describe the algorithm for the case ç. The basic idea is to artitio the rocessors ito grous G 1 ;::: ;G of rocessors, each. The mai oeratio cosists of ermutig the itegers such that all itegers stored i G i are smaller tha all itegers stored i G for all i é. We ca the aly Algorithm 1 to each grou. Agai, we are makig the descritio of Algorithm 2 fairly detailed i order to allow a aalysis that icludes estimates of costat factors. Algorithms 2: Sortig itegers o a rocessors machie whe ç. Iut: itegers i the rage 1;::: ; c, for fixed costat c, stored o a rocessor BSP/CGM, = itegers er rocessor. ç. Outut: The itegers are ermuted ito sorted order. 1. Grou the rocessors ito grous G 1 ;::: ;G of rocessors, each. For each grou, aly Algorithm 1 to sort the itegers withi the grou.
4 264 HIGH PERFORMANCE COMPUTING SYMPOSIUM Each rocessor seds its smallest iteger to rocessor P 1. We will refer to these items as the local miima. (Note that P 1 is to receive local miima i total, ad that this is ossible sice ç.) 3. P 1 sequetially sorts all local miima ad selects the itegers with rak i, 0 ç i ç, referred to as global slitters. These global slitters are broadcast to all rocessors (usig 2 -relatios). 4. Based o the received global slitters, each rocessor P i artitios its = itegers ito buckets B 0 i;1 ;::: ;B0 where B0 cotais the i; i; local itegers with value betwee the è, 1è-th ad -th global slitter. 5. Every rocessor P i, 1 ç i ç, seds B 0 to a rocessor i grou G i;, 1 ç ç. Let R 0 be the set of itegers received by rocessors i grou G, 1 ç ç,adletr 0 = R0. The routig schedule for this oeratio is determied as follows: First, withi each grou G i the size, t i;, of each iteger set set to grou G, 1 ç ç, is comuted. All t i;, 1 ç i; ç, are set to oe leadig rocessor er grou. Furthermore, withi each grou, the sizes of all B 0 are also set to the i; leadig rocessor. Each leadig rocessor ca the comute a routig schedule for its grou ad broadcast it to the rocessors i its grou. 6. Each grou G, 1 ç ç, sorts R 0 usig Algorithm A global balacig shift oeratio which distributes all itegers evely amog the rocessors without chagig their order is erformed aalogous to Ste 6 of Algorithm 1 but with a two hase scheme aalogous to the routig schedule comutatio i Ste 5 of Algorithm 2. ed of Algorithm Theorem 2 Algorithm 2 sorts itegers i the rage 1;::: ; c, for fixed costat c, storedoa rocessor BSP/CGM, = itegers er rocessor, ç, usig 24 commuicatio rouds (6 -relatios ad 18 -relatios), Oè è local memory er rocessor, ad Oè è local comutatio. Proof. Correctess: For each grou G i of rocessors, we have 0 = itegers ad 0 = rocessors. Therefore, 0 = = 0 = ç = 02,ad Algorithm 1 is alicable for each grou. Let S 0 be the set of itegers stored at i P i after Ste 1. The secod mai observatio is that each R 0 cotais at most 3 sets S 0. i Comlexity: The local memory ad local comutatio are bouded by the sequetial local radix sorts. For the commuicatio, we observe that Ste 1
5 Coarse Graied Parallel Iteger Sortig 265 Figure 26.1 Comutatio Times (I Secods) For Differet Numbers Of Data Items. The Three Curves Rereset Cofiguratios Of 2, 4, Ad 8 Processors, Resectively. requires 2 -relatios ad 4 -relatios, Ste 2 requires 1 -relatio, Ste 3 requires 2 -relatios, Ste 5 requires 1 -relatio ad 3 -relatios, Ste 6 requires 2 -relatios ad 4 -relatios, ad Ste 7 requires 1 -relatios ad 3 -relatios IMPLEMENTATION AND EXPERIMENTS We have imlemeted Algorithm 1 i MPI ad tested it o a multirocessor Petium latform ruig LINUX. The commuicatio betwee the rocessors is erformed through a Etheret switch. It is iterestig to observe that, eve o this low cost architecture, our algorithm shows good erformace. Figures 26.1, 26.2, ad 26.3 show the comutatio, commuicatio, ad total times (i secods), resectively, for differet umbers of data items. The three curves i each figure rereset cofiguratios of 2, 4, ad 8 rocessors, resectively. As exected, the commuicatio times are fairly similar. The comutatio times ad total ruig times are almost liear, ad we observe close to liear seedu. Note that, liear seedu is archived eve with a reasoably small workload. (May algorithms achive liear seedus oly for very high workloads.) I summary, we observe that the algorithm shows very good erformace i ractice.
6 266 HIGH PERFORMANCE COMPUTING SYMPOSIUM 1999 Figure 26.2 Commuicatio Times (I Secods) For Differet Numbers Of Data Items. The Three Curves Rereset Cofiguratios Of 2, 4, Ad 8 Processors, Resectively. Figure 26.3 Total Ruig Times (I Secods) For Differet Numbers Of Data Items. The Three Curves Rereset Cofiguratios Of 2, 4, Ad 8 Processors, Resectively.
7 26.4 CONCLUSION Coarse Graied Parallel Iteger Sortig 267 We have described a very simle, determiistic, otimal BSP/CGM iteger sortig algorithm that assumes = ç, which is usually the case i ractice. Our algorithm descritio is fairly detailed i order to allow a aalysis that icludes estimates of costat factors. The algorithm requires 24 commuicatio rouds (6 -relatios ad 18 -relatios), Oè=è memory er rocessor ad Oè=è local comutatio. For theoretical iterest, it is easy to see that the algorithm ca be geeralized to ru with Oè1=æè rouds for = ç æ, æé0. Exerimetal data idicates that the algorithm has very good erformace i ractice. Refereces [1] R. Cole, Parallel merge sort, SIAM J. Comut., 17(4), , [2] F. Dehe, A. Fabri, ad A. Rau-Chali, Scalable Parallel Geometric Algorithms for Coarse Graied Multicomuters, i Proc. ACM 9th Aual Comutatioal Geometry, , 1993 [3] F. Dehe, X. Deg, P. Dymod, A. Fabri ad A.A. Kokhar, A radomized arallel 3D covex hull algorithm for coarse graied arallel multicomuters, i Proc. ACM Sym. o Parallel Algorithms ad Architectures, [4] M.T. Goodrich, Commuicatio Efficiet Parallel Sortig, i Proc. 28th Aual ACM Sym. o Theory of Comutig (STOC 96), [5] L.G. Valiat, A Bridgig Model for Parallel Comutatio. Commuicatios of the ACM, Vol. 33, , 1990.
Sorting on Clusters of SMPs (Extended Abstract)
Sortig o Clusters of SMPs (Exteded Abstract) David R. Helma Joseh JáJá Istitute for Advaced Comuter Studies & Deartmet of Electrical Egieerig, Uiversity of Marylad, College Park, MD 20742. fhelma, joseh
More informationSorting in Linear Time. Data Structures and Algorithms Andrei Bulatov
Sortig i Liear Time Data Structures ad Algorithms Adrei Bulatov Algorithms Sortig i Liear Time 7-2 Compariso Sorts The oly test that all the algorithms we have cosidered so far is compariso The oly iformatio
More informationLecture 5. Counting Sort / Radix Sort
Lecture 5. Coutig Sort / Radix Sort T. H. Corme, C. E. Leiserso ad R. L. Rivest Itroductio to Algorithms, 3rd Editio, MIT Press, 2009 Sugkyukwa Uiversity Hyuseug Choo choo@skku.edu Copyright 2000-2018
More information2009 International Conference on Parallel and Distributed Computing, Applications and Technologies
2009 Iteratioal Coferece o Parallel ad Distributed Comutig, Alicatios ad Techologies A ef ciet arallel sortig comatible with the stadard qsort Duhu Ma, Yasuai Ito ad Koji Naao Deartmet of Iformatio Egieerig,
More informationislerp: An Incremental Approach to Slerp
isler: A Icremetal Aroach to Sler Xi Li Comuter Sciece Deartmet Digie Istitute of Techology xli@digie.edu Abstract I this aer, a icremetal uaterio iterolatio algorithm is itroduced. With the assumtio of
More informationLower Bounds for Sorting
Liear Sortig Topics Covered: Lower Bouds for Sortig Coutig Sort Radix Sort Bucket Sort Lower Bouds for Sortig Compariso vs. o-compariso sortig Decisio tree model Worst case lower boud Compariso Sortig
More informationStreaming PRAM. Abstract. 1. Introduction Simple PRAM
Streamig PRAM Darrell R. Ulm Deartmet of Comuter Sciece Uiversity of Akro dulm@cs.uakro.edu Michael Scherger Deartmet of Comuter Sciece Ket State Uiversity mscherge@cs.ket.edu Abstract Parallel radom access
More informationfound that now considerable work has been done in this started with some example, which motivates the later results.
8 Iteratioal Joural of Comuter Sciece & Emergig Techologies (E-ISSN: 44-64) Volume, Issue 4, December A Study o Adjacecy Matrix for Zero-Divisor Grahs over Fiite Rig of Gaussia Iteger Prajali, Amit Sharma
More informationAsynchronous Memory Machine Models with Barrier Synchronization
Asychroous Memory Machie Models ith Barrier Sychroizatio Koji Nakao Deartmet of Iformatio Egieerig Hiroshima Uiversity Kagamiyama 1-4-1, Higashi Hiroshima, 739-8527 Jaa Email: akao@cs.hiroshima-u.ac.j
More informationLoad balanced Parallel Prime Number Generator with Sieve of Eratosthenes on Cluster Computers *
Load balaced Parallel Prime umber Geerator with Sieve of Eratosthees o luster omputers * Soowook Hwag*, Kyusik hug**, ad Dogseug Kim* *Departmet of Electrical Egieerig Korea Uiversity Seoul, -, Rep. of
More informationOnes Assignment Method for Solving Traveling Salesman Problem
Joural of mathematics ad computer sciece 0 (0), 58-65 Oes Assigmet Method for Solvig Travelig Salesma Problem Hadi Basirzadeh Departmet of Mathematics, Shahid Chamra Uiversity, Ahvaz, Ira Article history:
More informationLecture Notes 6 Introduction to algorithm analysis CSS 501 Data Structures and Object-Oriented Programming
Lecture Notes 6 Itroductio to algorithm aalysis CSS 501 Data Structures ad Object-Orieted Programmig Readig for this lecture: Carrao, Chapter 10 To be covered i this lecture: Itroductio to algorithm aalysis
More informationWhat are we going to learn? CSC Data Structures Analysis of Algorithms. Overview. Algorithm, and Inputs
What are we goig to lear? CSC316-003 Data Structures Aalysis of Algorithms Computer Sciece North Carolia State Uiversity Need to say that some algorithms are better tha others Criteria for evaluatio Structure
More informationAnalysis Metrics. Intro to Algorithm Analysis. Slides. 12. Alg Analysis. 12. Alg Analysis
Itro to Algorithm Aalysis Aalysis Metrics Slides. Table of Cotets. Aalysis Metrics 3. Exact Aalysis Rules 4. Simple Summatio 5. Summatio Formulas 6. Order of Magitude 7. Big-O otatio 8. Big-O Theorems
More informationPolynomial Functions and Models. Learning Objectives. Polynomials. P (x) = a n x n + a n 1 x n a 1 x + a 0, a n 0
Polyomial Fuctios ad Models 1 Learig Objectives 1. Idetify polyomial fuctios ad their degree 2. Graph polyomial fuctios usig trasformatios 3. Idetify the real zeros of a polyomial fuctio ad their multiplicity
More informationPerhaps the method will give that for every e > U f() > p - 3/+e There is o o-trivial upper boud for f() ad ot eve f() < Z - e. seems to be kow, where
ON MAXIMUM CHORDAL SUBGRAPH * Paul Erdos Mathematical Istitute of the Hugaria Academy of Scieces ad Reu Laskar Clemso Uiversity 1. Let G() deote a udirected graph, with vertices ad V(G) deote the vertex
More informationCreating Exact Bezier Representations of CST Shapes. David D. Marshall. California Polytechnic State University, San Luis Obispo, CA , USA
Creatig Exact Bezier Represetatios of CST Shapes David D. Marshall Califoria Polytechic State Uiversity, Sa Luis Obispo, CA 93407-035, USA The paper presets a method of expressig CST shapes pioeered by
More informationGraphs. Minimum Spanning Trees. Slides by Rose Hoberman (CMU)
Graphs Miimum Spaig Trees Slides by Rose Hoberma (CMU) Problem: Layig Telephoe Wire Cetral office 2 Wirig: Naïve Approach Cetral office Expesive! 3 Wirig: Better Approach Cetral office Miimize the total
More informationDistributed Power-law Graph Computing: Theoretical and Empirical Analysis
Distributed Power-law Grah Comutig Distributed Power-law Grah Comutig: Theoretical ad Emirical Aalysis Cog Xie Deartmet of Comuter Sciece ad Egieerig Shaghai Jiao Tog Uiversity 800 Dog Chua Road, Shaghai,
More informationHeaps. Presentation for use with the textbook Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015
Presetatio for use with the textbook Algorithm Desig ad Applicatios, by M. T. Goodrich ad R. Tamassia, Wiley, 201 Heaps 201 Goodrich ad Tamassia xkcd. http://xkcd.com/83/. Tree. Used with permissio uder
More informationFREQUENCY ESTIMATION OF INTERNET PACKET STREAMS WITH LIMITED SPACE: UPPER AND LOWER BOUNDS
FREQUENCY ESTIMATION OF INTERNET PACKET STREAMS WITH LIMITED SPACE: UPPER AND LOWER BOUNDS Prosejit Bose Evagelos Kraakis Pat Mori Yihui Tag School of Computer Sciece, Carleto Uiversity {jit,kraakis,mori,y
More information1/27/12. Vectors: Outline and Reading. Chapter 6: Vectors, Lists and Sequences. The Vector ADT. Applications of Vectors. Array based Vector: Insertion
Chater 6: ectors, Lists ad Sequeces ectors: Outlie ad Readig The ector ADT ( 6.1.1) Array-based imlemetatio ( 6.1.2) Nacy Amato Parasol Lab, Det. CSE, Texas A&M Uiversity Ackowledgemet: These slides are
More information1 Graph Sparsfication
CME 305: Discrete Mathematics ad Algorithms 1 Graph Sparsficatio I this sectio we discuss the approximatio of a graph G(V, E) by a sparse graph H(V, F ) o the same vertex set. I particular, we cosider
More informationFigure 1. Illustration of proximity set and interaction set in two dimensions.
A Provably Otimal, Distributio-Ideedet Parallel Fast Multiole Method Λ Fatih E. Sevilge Syracuse Uiversity School of EECS Syracuse, NY 13244 sevilge@ecs.syr.edu Sriivas Aluru Iowa State Uiversity Det.
More informationCSE 417: Algorithms and Computational Complexity
Time CSE 47: Algorithms ad Computatioal Readig assigmet Read Chapter of The ALGORITHM Desig Maual Aalysis & Sortig Autum 00 Paul Beame aalysis Problem size Worst-case complexity: max # steps algorithm
More informationImproved Random Graph Isomorphism
Improved Radom Graph Isomorphism Tomek Czajka Gopal Paduraga Abstract Caoical labelig of a graph cosists of assigig a uique label to each vertex such that the labels are ivariat uder isomorphism. Such
More information15-859E: Advanced Algorithms CMU, Spring 2015 Lecture #2: Randomized MST and MST Verification January 14, 2015
15-859E: Advaced Algorithms CMU, Sprig 2015 Lecture #2: Radomized MST ad MST Verificatio Jauary 14, 2015 Lecturer: Aupam Gupta Scribe: Yu Zhao 1 Prelimiaries I this lecture we are talkig about two cotets:
More informationn n B. How many subsets of C are there of cardinality n. We are selecting elements for such a
4. [10] Usig a combiatorial argumet, prove that for 1: = 0 = Let A ad B be disjoit sets of cardiality each ad C = A B. How may subsets of C are there of cardiality. We are selectig elemets for such a subset
More informationAlgorithm Design Techniques. Divide and conquer Problem
Algorithm Desig Techiques Divide ad coquer Problem Divide ad Coquer Algorithms Divide ad Coquer algorithm desig works o the priciple of dividig the give problem ito smaller sub problems which are similar
More informationA New Morphological 3D Shape Decomposition: Grayscale Interframe Interpolation Method
A ew Morphological 3D Shape Decompositio: Grayscale Iterframe Iterpolatio Method D.. Vizireau Politehica Uiversity Bucharest, Romaia ae@comm.pub.ro R. M. Udrea Politehica Uiversity Bucharest, Romaia mihea@comm.pub.ro
More informationOn (K t e)-saturated Graphs
Noame mauscript No. (will be iserted by the editor O (K t e-saturated Graphs Jessica Fuller Roald J. Gould the date of receipt ad acceptace should be iserted later Abstract Give a graph H, we say a graph
More informationlevel 0 level 1 level 2 level 3
Communication-Ecient Deterministic Parallel Algorithms for Planar Point Location and 2d Voronoi Diagram? Mohamadou Diallo 1, Afonso Ferreira 2 and Andrew Rau-Chalin 3 1 LIMOS, IFMA, Camus des C zeaux,
More informationCSC165H1 Worksheet: Tutorial 8 Algorithm analysis (SOLUTIONS)
CSC165H1, Witer 018 Learig Objectives By the ed of this worksheet, you will: Aalyse the ruig time of fuctios cotaiig ested loops. 1. Nested loop variatios. Each of the followig fuctios takes as iput a
More informationRandom Graphs and Complex Networks T
Radom Graphs ad Complex Networks T-79.7003 Charalampos E. Tsourakakis Aalto Uiversity Lecture 3 7 September 013 Aoucemet Homework 1 is out, due i two weeks from ow. Exercises: Probabilistic iequalities
More informationJournal of Chemical and Pharmaceutical Research, 2014, 6(2): Research Article
Available olie www.ocr.com Joural of Chemical ad Pharmaceutical Research 204 6(2):250-255 Research Article ISSN : 0975-784 CODEN(USA) : JCPRC5 Based fuzzy atter recogitio methodology for the DDos evaluatio
More informationquality/quantity peak time/ratio
Semi-Heap ad Its Applicatios i Touramet Rakig Jie Wu Departmet of omputer Sciece ad Egieerig Florida Atlatic Uiversity oca Rato, FL 3343 jie@cse.fau.edu September, 00 . Itroductio ad Motivatio. relimiaries
More informationThe Magma Database file formats
The Magma Database file formats Adrew Gaylard, Bret Pikey, ad Mart-Mari Breedt Johaesburg, South Africa 15th May 2006 1 Summary Magma is a ope-source object database created by Chris Muller, of Kasas City,
More informationMorgan Kaufmann Publishers 26 February, COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 5
Morga Kaufma Publishers 26 February, 28 COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Iterface 5 th Editio Chapter 5 Set-Associative Cache Architecture Performace Summary Whe CPU performace icreases:
More informationCSC 220: Computer Organization Unit 11 Basic Computer Organization and Design
College of Computer ad Iformatio Scieces Departmet of Computer Sciece CSC 220: Computer Orgaizatio Uit 11 Basic Computer Orgaizatio ad Desig 1 For the rest of the semester, we ll focus o computer architecture:
More information6.854J / J Advanced Algorithms Fall 2008
MIT OpeCourseWare http://ocw.mit.edu 6.854J / 18.415J Advaced Algorithms Fall 2008 For iformatio about citig these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 18.415/6.854 Advaced Algorithms
More informationPseudocode ( 1.1) Analysis of Algorithms. Primitive Operations. Pseudocode Details. Running Time ( 1.1) Estimating performance
Aalysis of Algorithms Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite amout of time. Pseudocode ( 1.1) High-level descriptio of a algorithm More structured
More informationDesign of efficient, virtual non-blocking optical switches
Desig of efficiet, virtual o-blockig otical switches Larry F. Lid, Michael Sratt Mobile Systems ad Services Laboratory HP Laboratories Bristol HPL-200-239 March 3 th, 2002* otical switchig, switch desig
More informationOutline and Reading. Analysis of Algorithms. Running Time. Experimental Studies. Limitations of Experiments. Theoretical Analysis
Outlie ad Readig Aalysis of Algorithms Iput Algorithm Output Ruig time ( 3.) Pseudo-code ( 3.2) Coutig primitive operatios ( 3.3-3.) Asymptotic otatio ( 3.6) Asymptotic aalysis ( 3.7) Case study Aalysis
More informationData Structures and Algorithms. Analysis of Algorithms
Data Structures ad Algorithms Aalysis of Algorithms Outlie Ruig time Pseudo-code Big-oh otatio Big-theta otatio Big-omega otatio Asymptotic algorithm aalysis Aalysis of Algorithms Iput Algorithm Output
More informationCIS 121 Data Structures and Algorithms with Java Fall Big-Oh Notation Tuesday, September 5 (Make-up Friday, September 8)
CIS 11 Data Structures ad Algorithms with Java Fall 017 Big-Oh Notatio Tuesday, September 5 (Make-up Friday, September 8) Learig Goals Review Big-Oh ad lear big/small omega/theta otatios Practice solvig
More informationMinimum Rank of Graphs Powers Family
Oe Joural of Discrete Mathematics 0 65-69 htt://dxdoiorg/046/odm00 Published Olie Aril 0 (htt://wwwscirporg/oural/odm) Miimum Rak of rahs Powers Family Alimohammad Nazari Marzieh Karimi Radoor Deartmet
More informationLecture 6. Lecturer: Ronitt Rubinfeld Scribes: Chen Ziv, Eliav Buchnik, Ophir Arie, Jonathan Gradstein
068.670 Subliear Time Algorithms November, 0 Lecture 6 Lecturer: Roitt Rubifeld Scribes: Che Ziv, Eliav Buchik, Ophir Arie, Joatha Gradstei Lesso overview. Usig the oracle reductio framework for approximatig
More informationMath Section 2.2 Polynomial Functions
Math 1330 - Sectio. Polyomial Fuctios Our objectives i workig with polyomial fuctios will be, first, to gather iformatio about the graph of the fuctio ad, secod, to use that iformatio to geerate a reasoably
More informationHow do we evaluate algorithms?
F2 Readig referece: chapter 2 + slides Algorithm complexity Big O ad big Ω To calculate ruig time Aalysis of recursive Algorithms Next time: Litterature: slides mostly The first Algorithm desig methods:
More informationCIS 121 Data Structures and Algorithms with Java Spring Stacks, Queues, and Heaps Monday, February 18 / Tuesday, February 19
CIS Data Structures ad Algorithms with Java Sprig 09 Stacks, Queues, ad Heaps Moday, February 8 / Tuesday, February 9 Stacks ad Queues Recall the stack ad queue ADTs (abstract data types from lecture.
More informationAlgorithms Chapter 3 Growth of Functions
Algorithms Chapter 3 Growth of Fuctios Istructor: Chig Chi Li 林清池助理教授 chigchi.li@gmail.com Departmet of Computer Sciece ad Egieerig Natioal Taiwa Ocea Uiversity Outlie Asymptotic otatio Stadard otatios
More informationExact Minimum Lower Bound Algorithm for Traveling Salesman Problem
Exact Miimum Lower Boud Algorithm for Travelig Salesma Problem Mohamed Eleiche GeoTiba Systems mohamed.eleiche@gmail.com Abstract The miimum-travel-cost algorithm is a dyamic programmig algorithm to compute
More informationAn Efficient Algorithm for Graph Bisection of Triangularizations
A Efficiet Algorithm for Graph Bisectio of Triagularizatios Gerold Jäger Departmet of Computer Sciece Washigto Uiversity Campus Box 1045 Oe Brookigs Drive St. Louis, Missouri 63130-4899, USA jaegerg@cse.wustl.edu
More informationAn improved algorithm for Hausdorff Voronoi diagram for non-crossing sets
An imroved algorithm for Hausdorff Voronoi diagram for non-crossing sets Frank Dehne, Anil Maheshwari and Ryan Taylor May 26, 2006 Abstract We resent an imroved algorithm for building a Hausdorff Voronoi
More informationRelay Placement Based on Divide-and-Conquer
Relay Placemet Based o Divide-ad-Coquer Ravabakhsh Akhlaghiia, Azadeh Kaviafar, ad Mohamad Javad Rostami, Member, IACSIT Abstract I this paper, we defie a relay placemet problem to cover a large umber
More informationBezier curves. Figure 2 shows cubic Bezier curves for various control points. In a Bezier curve, only
Edited: Yeh-Liag Hsu (998--; recommeded: Yeh-Liag Hsu (--9; last updated: Yeh-Liag Hsu (9--7. Note: This is the course material for ME55 Geometric modelig ad computer graphics, Yua Ze Uiversity. art of
More informationSum-connectivity indices of trees and unicyclic graphs of fixed maximum degree
1 Sum-coectivity idices of trees ad uicyclic graphs of fixed maximum degree Zhibi Du a, Bo Zhou a *, Nead Triajstić b a Departmet of Mathematics, South Chia Normal Uiversity, uagzhou 510631, Chia email:
More informationTrajectory Improves Data Delivery in Urban Vehicular Networks
IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS Trajectory Imroves Data Delivery i Urba Vehicular Networks Yami Zhu, Member, IEEE, Yuche Wu, ad Bo Li, Fellow, IEEE Abstract Efficiet data delivery
More informationCivil Engineering Computation
Civil Egieerig Computatio Fidig Roots of No-Liear Equatios March 14, 1945 World War II The R.A.F. first operatioal use of the Grad Slam bomb, Bielefeld, Germay. Cotets 2 Root basics Excel solver Newto-Raphso
More informationprerequisites: 6.046, 6.041/2, ability to do proofs Randomized algorithms: make random choices during run. Main benefits:
Itro Admiistrivia. Sigup sheet. prerequisites: 6.046, 6.041/2, ability to do proofs homework weekly (first ext week) collaboratio idepedet homeworks gradig requiremet term project books. questio: scribig?
More informationA graphical view of big-o notation. c*g(n) f(n) f(n) = O(g(n))
ca see that time required to search/sort grows with size of We How do space/time eeds of program grow with iput size? iput. time: cout umber of operatios as fuctio of iput Executio size operatio Assigmet:
More informationHash Tables. Presentation for use with the textbook Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015.
Presetatio for use with the textbook Algorithm Desig ad Applicatios, by M. T. Goodrich ad R. Tamassia, Wiley, 2015 Hash Tables xkcd. http://xkcd.com/221/. Radom Number. Used with permissio uder Creative
More informationData Structures Week #9. Sorting
Data Structures Week #9 Sortig Outlie Motivatio Types of Sortig Elemetary (O( 2 )) Sortig Techiques Other (O(*log())) Sortig Techiques 21.Aralık.2010 Boraha Tümer, Ph.D. 2 Sortig 21.Aralık.2010 Boraha
More informationSAMPLE VERSUS POPULATION. Population - consists of all possible measurements that can be made on a particular item or procedure.
SAMPLE VERSUS POPULATION Populatio - cosists of all possible measuremets that ca be made o a particular item or procedure. Ofte a populatio has a ifiite umber of data elemets Geerally expese to determie
More informationChapter 9. Pointers and Dynamic Arrays. Copyright 2015 Pearson Education, Ltd.. All rights reserved.
Chapter 9 Poiters ad Dyamic Arrays Copyright 2015 Pearso Educatio, Ltd.. All rights reserved. Overview 9.1 Poiters 9.2 Dyamic Arrays Copyright 2015 Pearso Educatio, Ltd.. All rights reserved. Slide 9-3
More informationrus i O(log log Λ = log log ) time usig a optimal umber of processors. Chaudhuri, Hagerup, ad Rama's algorithm [2] rus i O(log= loglog) time o the CRC
Selectio Algorithms for Parallel Disk Systems 1 Saguthevar Rajasekara Dept. of CISE, Uiv. of Florida, Gaiesville, FL 32611. Abstract. With the wideig gap betwee processor speeds ad disk access speeds,
More informationCounting Regions in the Plane and More 1
Coutig Regios i the Plae ad More 1 by Zvezdelia Stakova Berkeley Math Circle Itermediate I Group September 016 1. Overarchig Problem Problem 1 Regios i a Circle. The vertices of a polygos are arraged o
More informationOrder statistics. Order Statistics. Randomized divide-andconquer. Example. CS Spring 2006
406 CS 5633 -- Sprig 006 Order Statistics Carola We Slides courtesy of Charles Leiserso with small chages by Carola We CS 5633 Aalysis of Algorithms 406 Order statistics Select the ith smallest of elemets
More informationRelationship between augmented eccentric connectivity index and some other graph invariants
Iteratioal Joural of Advaced Mathematical Scieces, () (03) 6-3 Sciece Publishig Corporatio wwwsciecepubcocom/idexphp/ijams Relatioship betwee augmeted eccetric coectivity idex ad some other graph ivariats
More informationRunning Time. Analysis of Algorithms. Experimental Studies. Limitations of Experiments
Ruig Time Aalysis of Algorithms Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite amout of time. Most algorithms trasform iput objects ito output objects. The
More informationRobot Path Planning in 3D Space Using Binary Integer Programming
Robot Path Plaig i 3D Sace Usig Biary Iteger Programmig Ellis Masehia, ad Golaz Habibi Abstract This aer resets a ovel algorithm for ath laig of mobile robots i kow 3D eviromets usig Biary Iteger Programmig
More informationLecture 1: Introduction and Strassen s Algorithm
5-750: Graduate Algorithms Jauary 7, 08 Lecture : Itroductio ad Strasse s Algorithm Lecturer: Gary Miller Scribe: Robert Parker Itroductio Machie models I this class, we will primarily use the Radom Access
More informationCSE 2320 Notes 8: Sorting. (Last updated 10/3/18 7:16 PM) Idea: Take an unsorted (sub)array and partition into two subarrays such that.
CSE Notes 8: Sortig (Last updated //8 7:6 PM) CLRS 7.-7., 9., 8.-8. 8.A. QUICKSORT Cocepts Idea: Take a usorted (sub)array ad partitio ito two subarrays such that p q r x y z x y y z Pivot Customarily,
More informationComputer Science Foundation Exam. August 12, Computer Science. Section 1A. No Calculators! KEY. Solutions and Grading Criteria.
Computer Sciece Foudatio Exam August, 005 Computer Sciece Sectio A No Calculators! Name: SSN: KEY Solutios ad Gradig Criteria Score: 50 I this sectio of the exam, there are four (4) problems. You must
More informationAnalysis of Algorithms
Presetatio for use with the textbook, Algorithm Desig ad Applicatios, by M. T. Goodrich ad R. Tamassia, Wiley, 2015 Aalysis of Algorithms Iput 2015 Goodrich ad Tamassia Algorithm Aalysis of Algorithms
More informationK-NET bus. When several turrets are connected to the K-Bus, the structure of the system is as showns
K-NET bus The K-Net bus is based o the SPI bus but it allows to addressig may differet turrets like the I 2 C bus. The K-Net is 6 a wires bus (4 for SPI wires ad 2 additioal wires for request ad ackowledge
More informationThe isoperimetric problem on the hypercube
The isoperimetric problem o the hypercube Prepared by: Steve Butler November 2, 2005 1 The isoperimetric problem We will cosider the -dimesioal hypercube Q Recall that the hypercube Q is a graph whose
More information1. SWITCHING FUNDAMENTALS
. SWITCING FUNDMENTLS Switchig is the provisio of a o-demad coectio betwee two ed poits. Two distict switchig techiques are employed i commuicatio etwors-- circuit switchig ad pacet switchig. Circuit switchig
More informationRunning Time ( 3.1) Analysis of Algorithms. Experimental Studies. Limitations of Experiments
Ruig Time ( 3.1) Aalysis of Algorithms Iput Algorithm Output A algorithm is a step- by- step procedure for solvig a problem i a fiite amout of time. Most algorithms trasform iput objects ito output objects.
More informationAnalysis of Algorithms
Aalysis of Algorithms Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite amout of time. Ruig Time Most algorithms trasform iput objects ito output objects. The
More informationOn Nonblocking Folded-Clos Networks in Computer Communication Environments
O Noblockig Folded-Clos Networks i Computer Commuicatio Eviromets Xi Yua Departmet of Computer Sciece, Florida State Uiversity, Tallahassee, FL 3306 xyua@cs.fsu.edu Abstract Folded-Clos etworks, also referred
More informationECE4050 Data Structures and Algorithms. Lecture 6: Searching
ECE4050 Data Structures ad Algorithms Lecture 6: Searchig 1 Search Give: Distict keys k 1, k 2,, k ad collectio L of records of the form (k 1, I 1 ), (k 2, I 2 ),, (k, I ) where I j is the iformatio associated
More informationLecture 2: Spectra of Graphs
Spectral Graph Theory ad Applicatios WS 20/202 Lecture 2: Spectra of Graphs Lecturer: Thomas Sauerwald & He Su Our goal is to use the properties of the adjacecy/laplacia matrix of graphs to first uderstad
More informationarxiv: v2 [cs.ds] 24 Mar 2018
Similar Elemets ad Metric Labelig o Complete Graphs arxiv:1803.08037v [cs.ds] 4 Mar 018 Pedro F. Felzeszwalb Brow Uiversity Providece, RI, USA pff@brow.edu March 8, 018 We cosider a problem that ivolves
More informationChapter 24. Sorting. Objectives. 1. To study and analyze time efficiency of various sorting algorithms
Chapter 4 Sortig 1 Objectives 1. o study ad aalyze time efficiecy of various sortig algorithms 4. 4.7.. o desig, implemet, ad aalyze bubble sort 4.. 3. o desig, implemet, ad aalyze merge sort 4.3. 4. o
More informationCounting the Number of Minimum Roman Dominating Functions of a Graph
Coutig the Number of Miimum Roma Domiatig Fuctios of a Graph SHI ZHENG ad KOH KHEE MENG, Natioal Uiversity of Sigapore We provide two algorithms coutig the umber of miimum Roma domiatig fuctios of a graph
More informationCS473-Algorithms I. Lecture 2. Asymptotic Notation. CS 473 Lecture 2 1
CS473-Algorithms I Lecture Asymptotic Notatio CS 473 Lecture 1 O-otatio (upper bouds) f() = O(g()) if positive costats c, 0 such that e.g., = O( 3 ) 0 f() cg(), 0 c 3 c c = 1 & 0 = or c = & 0 = 1 Asymptotic
More informationChapter 11. Friends, Overloaded Operators, and Arrays in Classes. Copyright 2014 Pearson Addison-Wesley. All rights reserved.
Chapter 11 Frieds, Overloaded Operators, ad Arrays i Classes Copyright 2014 Pearso Addiso-Wesley. All rights reserved. Overview 11.1 Fried Fuctios 11.2 Overloadig Operators 11.3 Arrays ad Classes 11.4
More informationThese, and closely related, roblems has been extensively studied for the sequential [1, 16] and the shared memory (PRAM) arallel [5, 6, 12, 13, 14, 15
Coarse Grained Parallel Algorithms for Detecting Convex Biartite Grahs Extended Abstract E. Caceres y A. Chan z F. Dehne x G. Prencie { Abstract In this aer, we resent arallel algorithms for the coarse
More informationA Parallel DFA Minimization Algorithm
A Parallel DFA Miimizatio Algorithm Ambuj Tewari, Utkarsh Srivastava, ad P. Gupta Departmet of Computer Sciece & Egieerig Idia Istitute of Techology Kapur Kapur 208 016,INDIA pg@iitk.ac.i Abstract. I this
More informationAn Efficient Algorithm for Graph Bisection of Triangularizations
Applied Mathematical Scieces, Vol. 1, 2007, o. 25, 1203-1215 A Efficiet Algorithm for Graph Bisectio of Triagularizatios Gerold Jäger Departmet of Computer Sciece Washigto Uiversity Campus Box 1045, Oe
More informationChapter 3. Floating Point Arithmetic
COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Iterface 5 th Editio Chapter 3 Floatig Poit Arithmetic Review - Multiplicatio 0 1 1 0 = 6 multiplicad 32-bit ALU shift product right multiplier add
More informationContrace: Traceroute Facility for Content- Centric Network
Cotrace: Traceroute Facility for Cotet- Cetric Network htts://tools.ietf.org/html/draft-asaeda-icrg-cotrace-01 Hitoshi Asaeda (NICT) Xu Shao (NICT) Thierry Turletti (Iria) 1 Outlie Motivatio Desig cocet
More informationAnalysis of Algorithms
Aalysis of Algorithms Ruig Time of a algorithm Ruig Time Upper Bouds Lower Bouds Examples Mathematical facts Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite
More informationChapter 10. Defining Classes. Copyright 2015 Pearson Education, Ltd.. All rights reserved.
Chapter 10 Defiig Classes Copyright 2015 Pearso Educatio, Ltd.. All rights reserved. Overview 10.1 Structures 10.2 Classes 10.3 Abstract Data Types 10.4 Itroductio to Iheritace Copyright 2015 Pearso Educatio,
More informationBig-O Analysis. Asymptotics
Big-O Aalysis 1 Defiitio: Suppose that f() ad g() are oegative fuctios of. The we say that f() is O(g()) provided that there are costats C > 0 ad N > 0 such that for all > N, f() Cg(). Big-O expresses
More informationReducing I/O Complexity by Simulating Coarse Grained Parallel Algorithms
Reducig I/O Complexity by Simulatig Coarse Graied Parallel Algorithms Frak Dehe, Daid Hutchiso, Ail Maheshwari School of Computer Sciece, Carleto Uiersity Ottawa, Caada K1S 5B6, fdehe, hutchis, maheshwag@scs.carleto.ca
More information4th IEEE International Symposium on Electronic Design, Test & Applications
4th EEE teratioal Symosium o Electroic Desig, Test & Alicatios Abstract terolatio Models for mage Suer-resolutio Adrew Gilma, Doald G. Bailey, Stehe R. Marslad stitute of formatio Scieces ad Techology
More informationCopyright 2016 Ramez Elmasri and Shamkant B. Navathe
Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe CHAPTER 18 Strategies for Query Processig Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe Itroductio DBMS techiques to process a query Scaer idetifies
More informationA Study on the Performance of Cholesky-Factorization using MPI
A Study o the Performace of Cholesky-Factorizatio usig MPI Ha S. Kim Scott B. Bade Departmet of Computer Sciece ad Egieerig Uiversity of Califoria Sa Diego {hskim, bade}@cs.ucsd.edu Abstract Cholesky-factorizatio
More information