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

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

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

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

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

뇌를 자극하는 알고리즘 - 8. 해시 테이블 : 개방 주소법(Open Addressing Hash Table)

구현 소스 OpenAddressing.h #ifndef OPEN_ADDRESSING_H #define OPEN_ADDRESSING_H #include #include #include typedef char* KeyType; typedef char* ValueType; enum ElementStatus { Empty = 0, Occupied = 1 }; typedef struct tagElementType { KeyType Key; ValueType Value; enum ElementStatus Status; }ElementType; typedef struct tagHashTable { int OccupiedCount; int TableSize; ElementType* Table; }HashTable; H..

Programming/뇌를 자극하는 알고리즘 2010. 11. 7. 10:56
뇌를 자극하는 알고리즘 - 8. 해시 테이블 : 체이닝(Chaining)

구현소스 ChainingHashTable.h #ifndef CHAINING_HASH_TABLE #define CHAINING_HASH_TABLE #include #include #include typedef char* KeyType; typedef char* ValueType; typedef struct tagNode { KeyType Key; ValueType Value; struct tagNode* Next; } Node; typedef Node* List; typedef struct tagHashTable { int TableSize; List* Table; // Linked List로 구현된 Node를 가리키는 더블 포인터 // HashTable 생성시 동적할당되어 포인터 배열로 쓰임. }Hash..

Programming/뇌를 자극하는 알고리즘 2010. 11. 7. 10:44
뇌를 자극하는 알고리즘 - 8. 해시 테이블 : 나눗셈법으로 구현된 간단한 해시 테이블

구현소스 SimpleHashTable.h #ifndef SIMPLE_HASH_TABLE #define SIMPLE_HASH_TABLE // 간단한 나눗셈법으로 구현한 Hash Table #include #include typedef int KeyType; typedef int ValueType; typedef struct tagNode { KeyType Key; ValueType Value; } Node; typedef struct tagHashTable { int TableSize; Node* Table; } HashTable; HashTable*SHT_CreateHashTable(int TableSize); voidSHT_Set(HashTable* HT, KeyType Key, ValueType Va..

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

티스토리툴바