[C/C++] max heap 구현 프로그램
본 자료는 미만의 자료로 미리보기를 제공하지 않습니다.
닫기
  • 1
해당 자료는 0페이지 까지만 미리보기를 제공합니다.
0페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

[C/C++] max heap 구현 프로그램에 대한 보고서 자료입니다.

목차

2.44KB

본문내용

#include
#include
#include
#include
#define TRUE 1
#define FALSE 0
#define max_heapsize 200

typedef struct heap {
    int data[max_heapsize];
    int size;
} heap;


int init_heap(heap *);
int insert_heap(heap *, int);
int delete_heap(heap *);
void print_heap(heap *);


int init_heap(heap *list) {
    if (!list)
        return FALSE;

    list->size = 0;
    return TRUE;
}

int insert_heap(heap *list, int key) {
    int i, temp = 0;

    for (i=1; isize; i++)
        if (key == list->data[i])
            temp++; //노드내에 같은 수 중복 방지

키워드

  • 가격1,300
  • 페이지수1페이지
  • 등록일2012.11.13
  • 저작시기2012.11
  • 파일형식기타(cpp)
  • 자료번호#775740
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니