mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-12-19 08:59:05 +08:00
feat: added ukranian translations for graph, heap, linked-list, priority-queue, queue, stack. trie (#965)
This commit is contained in:
committed by
GitHub
parent
025b9a390b
commit
a6a4d01f95
@@ -6,20 +6,21 @@ _Read this in other languages:_
|
||||
[_日本語_](README.ja-JP.md),
|
||||
[_Français_](README.fr-FR.md),
|
||||
[_Português_](README.pt-BR.md),
|
||||
[_한국어_](README.ko-KR.md)
|
||||
[_한국어_](README.ko-KR.md),
|
||||
[_Українська_](README.uk-UA.md)
|
||||
|
||||
In computer science, a **priority queue** is an abstract data type
|
||||
which is like a regular queue or stack data structure, but where
|
||||
additionally each element has a "priority" associated with it.
|
||||
In a priority queue, an element with high priority is served before
|
||||
an element with low priority. If two elements have the same
|
||||
In computer science, a **priority queue** is an abstract data type
|
||||
which is like a regular queue or stack data structure, but where
|
||||
additionally each element has a "priority" associated with it.
|
||||
In a priority queue, an element with high priority is served before
|
||||
an element with low priority. If two elements have the same
|
||||
priority, they are served according to their order in the queue.
|
||||
|
||||
While priority queues are often implemented with heaps, they are
|
||||
conceptually distinct from heaps. A priority queue is an abstract
|
||||
While priority queues are often implemented with heaps, they are
|
||||
conceptually distinct from heaps. A priority queue is an abstract
|
||||
concept like "a list" or "a map"; just as a list can be implemented
|
||||
with a linked list or an array, a priority queue can be implemented
|
||||
with a heap or a variety of other methods such as an unordered
|
||||
with a heap or a variety of other methods such as an unordered
|
||||
array.
|
||||
|
||||
## References
|
||||
|
||||
21
src/data-structures/priority-queue/README.uk-UA.md
Normal file
21
src/data-structures/priority-queue/README.uk-UA.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Черга з пріоритетом
|
||||
|
||||
Черга з пріоритетом (англ. priority queue) - абстрактний тип даних в інформатиці,
|
||||
для кожного елемента якого можна визначити його пріоритет.
|
||||
|
||||
У черзі з пріоритетами елемент із високим пріоритетом обслуговується раніше
|
||||
елемент з низьким пріоритетом. Якщо два елементи мають однаковий пріоритет, вони
|
||||
обслуговуються відповідно до їх порядку в черзі.
|
||||
|
||||
Черга з пріоритетом підтримує дві обов'язкові операції – додати елемент та
|
||||
витягти максимум (мінімум).
|
||||
|
||||
Хоча пріоритетні черги часто реалізуються у вигляді куп (heaps), вони
|
||||
концептуально відрізняються від куп. Черга пріоритетів є абстрактною
|
||||
концепцією на кшталт «списку» чи «карти»; так само, як список може бути реалізований
|
||||
у вигляді зв'язкового списку або масиву, так і черга з пріоритетом може бути реалізована
|
||||
у вигляді купи або безліччю інших методів, наприклад, у вигляді невпорядкованого масиву.
|
||||
|
||||
## Посилання
|
||||
|
||||
- [Wikipedia](https://uk.wikipedia.org/wiki/%D0%A7%D0%B5%D1%80%D0%B3%D0%B0_%D0%B7_%D0%BF%D1%80%D1%96%D0%BE%D1%80%D0%B8%D1%82%D0%B5%D1%82%D0%BE%D0%BC)
|
||||
Reference in New Issue
Block a user