|
트리에 존재하는 노드의 내용을 출력하라.
(1) 전위순회
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
typedef struct tree_node
{
int data;
struct tree_node *left_child, *right_child;
} tnode_str;
tnode_str *root;
void inorder (tnode_str *ptr)
{
if (ptr)
{
printf("<%d
|
- 페이지 16페이지
- 가격 2,000원
- 등록일 2004.11.28
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
예로 만들어 놓은 input 2개와 .c 파일과 문서화 된 .doc로 구성되어있다.
수업시간에 배운 Linked list를 이용하여 영어 단어 검색을 binary search tree로 구현하는 것이 이번 프로그래밍 과제의 목표입니다.
이번 프로그래밍 과제를 완벽히 수행하기
|
- 페이지 18페이지
- 가격 4,000원
- 등록일 2012.02.07
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#define TRUE 1
#define FALSE 0
#define AXIS_X 0
#define AXIS_Y 1
#define AXIS_Z 2
typedef struct POINT {
float x;
float y;
float z;
} POINT;
// tree node
typedef struct NODE {
struc
|
- 페이지 5페이지
- 가격 3,000원
- 등록일 2009.09.08
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
트리의 높이 출력 함수
void menu (); //메뉴출력함수
void select_menu(Node **root); //메뉴 인터페이스
void quit();
|
- 페이지 24페이지
- 가격 3,000원
- 등록일 2013.09.15
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
소스코드
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node{ //노드를 저장할 구조체 변수선언
int key; //노드의 키값
int data; //노드의 데이터값
struct node *parent; //노드의 부모 포인트
struct node *left; //
|
- 페이지 10페이지
- 가격 2,000원
- 등록일 2009.06.24
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|