우선순위가 높은 데이터가 먼저 나오는 자료구조,기본 구현은 힙 이며 기본 설정은 최대 힙(max-Heap) 이다.내부적으로 Heap 자료 구조를 사용한다삽입,삭제(pop)은 항상 O(log N)이고 top()(가장 우선 순위 높은 원소 조회)은 O(1)이다.가장 큰/작은 원소를 순식간에 추출 할 때 최적전체 정렬이 아닌 탑 우선 정렬만 보최대힙 사용 예제#include #include using namespace std;int main() { priority_queue pq; pq.push(10); pq.push(3); pq.push(7); cout 최소 힙 사용 예제greater를 사용한다// 최소 힙priority_queue, greater> minPq;minPq.push(..