1 / 17

Comparator

Comparator. outputs. inputs. min( x, y ). x. max( x, y ). y. Balancer. outputs. inputs. x. y. Balancer. outputs. inputs. 7. 4. 2. 5. 0. 1. 1. 1. 3. 2. 2. 2. width n. 1. 2. 2. 2. 3. 2. 2. 2. depth d. Balancing Network. for any. smooth property:. Balancing

tiptona
Télécharger la présentation

Comparator

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Comparator outputs inputs min(x, y) x max(x, y) y

  2. Balancer outputs inputs x y

  3. Balancer outputs inputs 7 4 2 5

  4. 0 1 1 1 3 2 2 2 width n 1 2 2 2 3 2 2 2 depth d Balancing Network

  5. for any smooth property: . . . . Balancing Network . . Smooth Sequences

  6. for any smooth property: . . . Smooth Sequences 3 4 3 Balancing Network 3 3 4 3 3

  7. step property: for any . . . . . . Step Sequences Balancing Network

  8. step property: for any . . . Step Sequences 3 3 3 Balancing Network 3 4 4 4 4

  9. . . . . . . for any Counting Network Balancing network with step output sequences: Counting Network for all inputs

  10. ? . . . . Balancing Network Comparison Network . . . . . . . . Sorting vs. Counting Counts Sorts isomorphic

  11. ? . . . . . . . . . . . . Sorting vs. Counting Counts Sorts Balancing Network Comparison Network isomorphic

  12. ? . . . . . . . . . . . . Sorting vs. Counting Counts Sorts Balancing Network Comparison Network isomorphic

  13. Sorting vs. Counting Theorem If a balancing network counts, then its isomorphic comparison network sorts, but not vice-versa.

  14. min(x, y) x x max(x, y) y y comparator balancer Sorting vs. Counting Counts Sorts • By 0/1 principle, we need only consider 0/1 inputs.

  15. Sorting vs. Counting Counts Sorts • By 0/1 principle, we need only consider 0/1 inputs. • A step sequence of 0’s and 1’s is a sorted sequence of 0’s and 1’s. 1 0 1 0 0 1 0 1 comparator balancer

  16. 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 Sorting vs. Counting Sorts Counts Insertion Sort: a network which sorts but doesn’tcount.

  17. 32 16 16 12 12 10 10 8 0 16 8 12 8 10 7 9 0 0 8 4 8 5 8 8 0 0 0 4 2 5 5 5 0 0 0 0 2 2 2 2 Sorting vs. Counting Sorts Counts

More Related