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

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

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

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

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

뇌를 자극하는 알고리즘 - 4. 트리 : Expression Tree

구현소스 ExpressionTree.h #ifndef EXPRESSION_TREE_H #define EXPRESSION_TREE_H #include #include #include typedef double Element; typedef struct tagETNode { struct tagETNode* Left; struct tagETNode* Right; Element Data; } ETNode; // 노드생성 ETNode* ET_CreateNode(Element NewData); // 노드 파괴 void ET_DestroyNode(ETNode* Node); // 수식 트리 파괴 - 후위순회 void ET_DestroyTree(ETNode* Root); // 전위 순회 void ET_PreorderPr..

Programming/뇌를 자극하는 알고리즘 2010. 10. 13. 15:26
뇌를 자극하는 알고리즘(Data Structures In C) - 5. 정렬 : Quick Sort

구현소스 QuickSort.h #ifndef QUICKSORT_H #define QUICKSORT_H #include void Quick_Sort(int Data[], int left, int right, int size); int Partition(int Data[], int left,int right); void Swap(int *a, int *b); void Print_Array(int Data[], int size); #endif ------------------------------------------------------------------ QuickSort.cpp #include "QuickSort.h" void Print_Array(int Data[], int size){ int i; ..

Programming/뇌를 자극하는 알고리즘 2010. 10. 13. 00:47
뇌를 자극하는 알고리즘 - 5. 정렬 : Insertion Sort

구현 소스 InsertionSort.h #ifndef INSERTIONSORT_H #define INSERTIONSORT_H #include #include void InsertionSort(int Data[], int size); #endif -------------------------------------------------------------------- InsertionSort.cpp #include "InsertionSort.h" void InsertionSort(int Data[], int size){ int i; int j; int value; int k; for(i=1 ; i

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

Blog is powered by Tistory / Designed by Tistory

티스토리툴바