본문 바로가기 메뉴 바로가기

더 나은 프로그래머가 되기 위하여.

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

더 나은 프로그래머가 되기 위하여.

검색하기 폼
  • Trash (25)
    • Programming (25)
      • 뇌를 자극하는 알고리즘 (25)
  • 방명록

뇌를 자극하는 알고리즘 - 5. 정렬 : Bubble Sort

구현 소스 BubbleSort.h #ifndef BUBBLESORT_H #define BUBBLESORT_H #include void BubbleSort_Ascending(int Data[], int size); void BubbleSort_Descending(int Data[], int size); int IsSorting_Ascending(int Data[], int size); int IsSorting_Descending(int Data[], int size); #endif ------------------------------------------------------------------------- BubbleSort.cpp #include "BubbleSort.h" void BubbleSor..

Programming/뇌를 자극하는 알고리즘 2010. 10. 11. 23:24
뇌를 자극하는 알고리즘 - 4. 트리 : Simple Binary Tree

구현소스 BinaryTree.h #ifndef BINARYTREE_H #define BINARYTREE_H #include #include // SBT = Simple Binary Tree // Binary Tree는 Maximum Degree(- Node 가 가지는 Child Node의 개수) 가 2인 Tree이다. // - Binary Tree의 종류 // 1. Full Binary Tree - 포화 이진 트리 // : Leaf Node(Height[- 최대 Depth값]에 존재하는 Node)를 제외한 모든 Node가 Child Node를 2개씩 가지고 있다. // : Leaf Node들이 모두 같은 Depth[- Root노드에서 해당 Node까지의 경로의 길이]에 존재한다. // 2. Complet..

Programming/뇌를 자극하는 알고리즘 2010. 10. 7. 23:42
뇌를 자극하는 알고리즘 - 4. 트리 : Left Child Right Sibling

구현 소스 LCRSTree.h #ifndef LCRSTREE_H #define LCRSTREE_H #include #include typedef char Element; // Left child Right Sibling Tree Struct 선언 typedef struct tagLCRSNode{ struct tagLCRSNode* LeftChild; struct tagLCRSNode* RightSibling; Element Data; } LCRSNode; LCRSNode* LCRS_CreateNode(Element NewData); void LCRS_DestroyNode(LCRSNode* Node); void LCRS_DestroyTree(LCRSNode* Root); // DestroyTree 함수는 ..

Programming/뇌를 자극하는 알고리즘 2010. 10. 7. 23:34
이전 1 ··· 3 4 5 6 7 8 9 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 2D Game Project
  • Digits Folding
  • Kinect Game Project
  • Win32 API
  • MFC 예제
  • 열혈강의C
  • WinAPI
  • graph
  • Ice Climber
  • SetTimer
  • 그림 맞추기 게임
  • Queue
  • PtInRect
  • Farseer Physics
  • Tree
  • quick sort
  • Game project
  • IntersectRect
  • 뇌를 자극하는 알고리즘
  • Stack
  • Pixel 색상값으로 구현한 간단한 충돌
  • WM_CONTEXTMENU
  • 윈도우즈 API 정복
  • Hash table
  • WM_TIMER
  • PackMan
  • Kinect Programming
  • Tales of the Float Land
  • Linked list
  • Data Structures in C
more
«   2025/11   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바