Indexing and Ranking MICROPROCESSOR SYSTEMS – MAXELER PROJECT AUTHOR: NIKOLA MAKSIMOVIC 545/12.

Slides:



Advertisements
Similar presentations
Insertion Sort David Borden CS 32. How Insertion Sort Works Author: Swfung8 Somewhat.
Advertisements

Chapter 3 Brute Force Brute force is a straightforward approach to solving a problem, usually directly based on the problem’s statement and definitions.
Chapter 7 Sorting Part II. 7.3 QUICK SORT Example left right pivot i j 5 > pivot and should go to the other side. 2 < pivot and should go to.
Chapter 2.9 Sorting Arrays. Sort Algorithms A set of records is given Each record is identified by a certain key One wants to sort the records according.
Monday, 11/11/02, Slide #1 CS 106 Intro to Comp. Sci. 1 Monday, 11/11/02  Questions? HW 04 due today at 5.  Today – Lists and an introduction to searching.
Jyotishka Datta STAT 598Z – Sorting. Insertion Sort If the first few objects are already sorted, an unsorted object can be inserted in the sorted set.
Sorting Chapter 8 CSCI 3333 Data Structures.
Insertion Sort by: Jordan Mash CS32 Bryce Boe. How does it work? Essentially the same way you order anything in day to day life. –Cards –Straws –Arrays?
CS 171: Introduction to Computer Science II Mergesort.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapter 7: Sorting Algorithms
Chapter 24 (lecture 16) Click To Close: A Fluency Summary.
Advanced Topics in Algorithms and Data Structures 1 Lecture 4 : Accelerated Cascading and Parallel List Ranking We will first discuss a technique called.
CS2420: Lecture 10 Vladimir Kulyukin Computer Science Department Utah State University.
When is O(n lg n) Really O(n lg n)? A Comparison of the Quicksort and Heapsort Algorithms Gerald Kruse Juniata College Huntingdon, PA.
Design of parallel algorithms Sorting J. Porras. Problem Rearrange numbers (x 1,...,x n ) into ascending order ? What is your intuitive approach –Take.
Objectives Learn how to implement the sequential search algorithm Explore how to sort an array using the selection sort algorithm Learn how to implement.
CSSE221: Software Dev. Honors Day 20 Announcements Announcements Homework 7 due beginning of next class. Homework 7 due beginning of next class. 6 short.
S: Application of quicksort on an array of ints: partitioning.
CS2420: Lecture 8 Vladimir Kulyukin Computer Science Department Utah State University.
Advanced Topics in Algorithms and Data Structures 1 Two parallel list ranking algorithms An O (log n ) time and O ( n log n ) work list ranking algorithm.
Sorting Chapter 6 Chapter 6 –Insertion Sort 6.1 –Quicksort 6.2 Chapter 5 Chapter 5 –Mergesort 5.2 –Stable Sorts Divide & Conquer.
CS420 lecture three Lowerbounds wim bohm, cs CSU.
Lower Bounds for Comparison-Based Sorting Algorithms (Ch. 8)
Veljko Milutinović VLSI for SuperComputing: From Applications and Algorithms to Masks and Chips 1/40.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 19: Recursion.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Principles of Parallel Programming First Edition by Calvin Lin Lawrence Snyder.
ECE 259 / CPS 221 Advanced Computer Architecture II (Parallel Computer Architecture) Novel Architectures Copyright 2004 Daniel J. Sorin Duke University.
Chapter 16: Searching, Sorting, and the vector Type.
CHAPTER 09 Compiled by: Dr. Mohammad Omar Alhawarat Sorting & Searching.
Copyright © 2007 Pearson Addison-Wesley. All rights reserved. A. Levitin “ Introduction to the Design & Analysis of Algorithms, ” 2 nd ed., Ch. 1 Chapter.
Sorting Algorithms Data Structures & Problem Solving Using JAVA Second Edition Mark Allen Weiss Chapter 8 © 2002 Addison Wesley.
Chapter 6: Transform and Conquer Shell Sort The Design and Analysis of Algorithms.
CS 193G Lecture 7: Parallel Patterns II. Overview Segmented Scan Sort Mapreduce Kernel Fusion.
© 2006 Pearson Addison-Wesley. All rights reserved10 A-1 Chapter 10 Algorithm Efficiency and Sorting.
Chapter 12 Binary Search and QuickSort Fundamentals of Java.
© David Kirk/NVIDIA, Wen-mei W. Hwu, and John Stratton, ECE 498AL, University of Illinois, Urbana-Champaign 1 CUDA Lecture 7: Reductions and.
Radix Sort and Hash-Join for Vector Computers Ripal Nathuji 6.893: Advanced VLSI Computer Architecture 10/12/00.
Sudhanshu Khemka.  Treats each document as a vector with one component corresponding to each term in the dictionary  Weight of a component is calculated.
QuickSort Choosing a Good Pivot Design and Analysis of Algorithms I.
Cholesky decomposition Teodora Aleksi ć, 391/2012.
TWO IMAGE PROCESSING ALGORITHMS BRIGHTNESS GAMA CORRECTION MAJA VUKASOVIĆ 2012/0003.
Contingency table analyses Miloš Radić 12/0010 1/14.
Miloš Kotlar 2012/115 Single Layer Perceptron Linear Classifier.
Sorting Integers in the RAM Model Gerth Stølting Brodal Joint work with Djamal Belazzougui and Jesper Sindal Nielsen (to be presented at the 14th Scandinavian.
THRESHOLDING (IMAGE PROCESSING) Filip Vuković 2012/0205.
Merge Sort Presentation By: Justin Corpron. In the Beginning… John von Neumann ( ) Stored program Developed merge sort for EDVAC in 1945.
1/16 CALCULATING PREFIX SUMS Vladimir Jocovi ć 2012/0011.
1 Computer Algorithms Tutorial 2 Mathematical Induction Some of these slides are courtesy of D. Plaisted et al, UNC and M. Nicolescu, UNR.
Recursion Chapter 16 S. Dandamudi To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer, 2005.
Data Structures and Algorithms Instructor: Tesfaye Guta [M.Sc.] Haramaya University.
1Computer Sciences Department. 2 QUICKSORT QUICKSORT TUTORIAL 5.
1/16 CALCULATING PREFIX SUMS Vladimir Jocovi ć 2012/0011.
Luka Petrović 69/2012 1/12. The Standard Deviation is a measure of how spread out numbers are. Its symbol is σ (the greek letter sigma) The formula is.
By Leon Gradisar (531/2010) Golden Section Search.
Gaussian Elimination and Back Substitution Aleksandra Cerović 0328/2010 1/15Gaussian Elimination And Back Substitution.
Quasi Random Sequences Author: Stefan Ilijevski. Random sequences? 2/10.
Chapter 16: Searching, Sorting, and the vector Type.
CMPT 238 Data Structures More on Sorting: Merge Sort and Quicksort.
Polynomial Interpolation and Extrapolation
Gray Codes.
Introduction to Analysis of Algorithms
Introduction to Analysis of Algorithms
CSE 143 Lecture 23: quick sort.
Computer Architecture
Way out base: 2i.
병렬처리시스템 2005년도 2학기 채 수 환
Tactile features for prosthesis perception.
Online verification using reachable occupancies.
Presentation transcript:

Indexing and Ranking MICROPROCESSOR SYSTEMS – MAXELER PROJECT AUTHOR: NIKOLA MAKSIMOVIC 545/12

Indexing Sort without sorting? The concept of the key Indexing as an alternative sort Quicksort

Indexing – algorithm Additional array (one or more) The key Quicksort

Indexing – algorithm Initialization of an array with index values Additional array The key on which is the sort performed Execution of quicksort algorithm Quicksort An index array sorted in a certain order based on some other key value in relation to the original array Result

Ranking Indexing for indexing? Not exactly… Positions of elements of the original array in the index array Mostly created after the index array

Indexing and Ranking

Maxeler optimization

Indexing Quicksort as the only thing to optimize O(n log(n)) Quicksort must be inline implemented The size of the array does matter

Indexing Alternative sort algorithm? "Batcher's parallel method“ (Chapter 3 of “The Art of Computer Programming“ - Donald Knuth) More compatible to hardware than Quicksort Very suitable for indexing

Ranking With index array Without index array Single for-loop

Overall impression “What - to” or “What not - to”? The size of the array The number of operations irrelevant Hard to get any noticeable optimizations

Reference MILUTINOVIC, V., SALOM, J., TRIFUNOVIC, N., GIORGI, R., “GUIDE TO DATAFLOW SUPERCOMPUTING,” SPRINGER, MILUTINOVIC, V., EDITOR, “ADVANCES IN COMPUTERS: DATAFLOW,” ELSEVIER, HURSON, A., MILUTINOVIC, V., EDITORS, "DATAFLOW PROCESSING," ELSEVIER, KNUTH, D., “THE ART OF COMPUTER PROGRAMMING,” ADDISON-WESLEY, MILUTINOVIC, V. ET AL, “ PARADIGM SHIFT IN SUPERCOMPUTING: DATAFLOW VS CONTROLFLOW, ” JOURNAL OF BIG DATA, 2015.