Priority queue
کیووی پێشینەیی
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
A queue in which every item has a priority, and the item with the best (usually lowest) priority value always comes out first. Greedy best-first search and A* use one.
کە هەر دانەیەکی پێشینەییەکی هەیە و هەمیشە ئەو دانەیەی باشترین (زۆرجار کەمترین) نرخی پێشینەیی هەیە یەکەم جار دەردەچێت. و بەکاری دەهێنن.
Exampleنموونە
heapq turns a list into a priority queue: the tuple with the smallest first number comes out first.
heapq دەکات بە : ئەو کەمترین ژمارەی یەکەمی هەیە یەکەم جار دەردەچێت.
import heapq
pq = []
heapq.heappush(pq, (17, 0, (6, 0)))
heapq.heappush(pq, (16, 1, (6, 1)))
print(heapq.heappop(pq)) # (16, 1, (6, 1))Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
کیووە پێشینەییەکە، کیووە پێشینەییەکان، کیوویەکی پێشینەیی، کیووە پێشینەییەکانی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Built on S2's کیوو and the registry's پێشینەیی (precedence, operator-precedence). Proposed.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Learn more inزیاتر فێربە لە
- Priority Queues and Heapsکیووە پێشینەییەکان و هیپەکان
- Heuristics and Greedy Best-First Searchپێوەرەکان و گەڕانی چاوچنۆکانە
- A* Searchگەڕانی A*
- Depth-Limited, Uniform-Cost, Iterative Deepening and Bidirectional Searchگەڕانی قووڵایی سنووردار، گەڕانی کەمترین کۆست، گەڕانی قووڵکردنەوەی پلەبەپلە و گەڕانی دووئاڕاستە
- Queues and Deques: First In, First Outکیووەکان و کیووە دووسەرەکان: یەکەم هاتوو، یەکەم دەرچوو
- Stacks: Last In, First Outستاکەکان: دوایین هاتوو، یەکەم دەرچوو
- Binary Search and Hashingگەڕانی دووانی و هاشکردن
- Search Problems: States, Actions, Goals and Costsکێشەکانی گەڕان: دۆخەکان، کردەوەکان، ئامانج و کۆست
- Solving a Maze with DFS and BFSچارەسەرکردنی لابیرینت بە DFS و BFS
- What Is Artificial Intelligence?ژیریی دەستکرد چییە؟