Сеть Бетчера — различия между версиями
Gemin (обсуждение | вклад) |
Gemin (обсуждение | вклад) |
||
Строка 28: | Строка 28: | ||
====Битонический сотрировщик==== | ====Битонический сотрировщик==== | ||
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| | + | ||[[Файл:Half-Cleaner-proof.png|450px|thumb|Рис.2 Все случаи попадания битонической последовательности на полуфильтр]] |
|} | |} | ||
Версия 08:45, 15 июня 2011
Содержание
Определение
Сеть Бетчера (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
- Т.Кормен "Алгоритмы построение и анализ"