뇌를 자극하는 알고리즘 - 7. 우선순위 큐와 힙: 우선순위 큐(Priority Queue)
구현 소스 PriorityQueue.h #ifndef PRIORITYQUEUE_H #define PRIORITYQUEUE_H #include #include #include typedef struct tagPQNode { int Priority; // 우선순위 void* Data; // 다양한 자료형을 우선순위큐 안에 담을 수 있도록 void* type으로 선언함. } PQNode; typedef struct tagPriorityQueue { PQNode* Nodes; // Node를 담는 배열 int Capacity; int UsedSize; } PriorityQueue; //////////// 함수 정의 /////////////// PriorityQueue*PQ_Create(int Init); voi..
Programming/뇌를 자극하는 알고리즘
2010. 10. 25. 16:01
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Win32 API
- Tree
- SetTimer
- Queue
- graph
- Farseer Physics
- 윈도우즈 API 정복
- Kinect Game Project
- MFC 예제
- PackMan
- 2D Game Project
- WM_CONTEXTMENU
- quick sort
- 뇌를 자극하는 알고리즘
- Data Structures in C
- Linked list
- IntersectRect
- PtInRect
- Stack
- Ice Climber
- WM_TIMER
- 열혈강의C
- Digits Folding
- Pixel 색상값으로 구현한 간단한 충돌
- 그림 맞추기 게임
- Hash table
- WinAPI
- Kinect Programming
- Game project
- Tales of the Float Land
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
글 보관함