Сеть Бетчера — различия между версиями
Lis (обсуждение | вклад) (→Конструирование сети) |
(→Битонический сотрировщик) |
||
Строка 27: | Строка 27: | ||
| | | | ||
====Битонический сотрировщик==== | ====Битонический сотрировщик==== | ||
− | erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT. | + | erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.\ |
+ | |||
+ | //Четко | ||
||[[Файл:Half-Cleaner-proof.png|450px|thumb|Рис.2 Все случаи попадания битонической последовательности на полуфильтр]] | ||[[Файл:Half-Cleaner-proof.png|450px|thumb|Рис.2 Все случаи попадания битонической последовательности на полуфильтр]] | ||
|} | |} |
Версия 22:09, 30 мая 2012
Содержание
Определение
Сеть Бетчера (Batcher odd-even mergesort) - сортирующая сеть размером
и глубиной , где - количество элементов для сортировки.Конструирование сети
Для начала введем понятие битонической последовательности:
Определение: |
Битонической последовательностью называется последовательность, которая сначала монотонно возрастает, а затем монотонно убывает, или последовательность, которая приводится к такому виду путем циклического сдвига. |
В нашем случае мы будем рассматривать нуль-единичные битонические последовательности:
Определение: |
Нуль-единичные битонические последовательности - последовательности вида | или для
Битонический сортировщик
На первом этапе конструирования стоит задача построить сравнивающую сеть, которая будет сортировать любую нуль-единичную битоническую последовательность - битонический сортировщик.ПолуфильтрБитонический сортировщик состоит из нескольких каскадов, каждый из которых называется полуфильтром (half-cleaner). Каждый полуфильтр - сравнивающая сеть глубиной 1, в которой
|
Битонический сотрировщикerwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.erwtgretasdfg a sdfg sdhgj adfh artfgh DASGASJ DFA HTY ADFHWT YDASGS UJA ZHJRYTUH R DEUJETYH FYUJES SDFGHGS HERFGAHE FGHWRFG YTEUH SHEDT.\ //Четко |
Источники
- Batcher odd-even merge sort
- Т.Кормен "Алгоритмы построение и анализ"