나의 즐겨찾기 | 블로그홈 | 바로가기 바로가기 | 로그인
.
블로그  |  사진갤러리  |  동영상갤러리 방명록  |   즐겨찾기 추가
reportshop (reportshop)
프로필     
 인기도 :
 이 블로그 점수주기
전체 글보기(214599)
레포트8
레포트10
레포트9
레포트1
레포트2
레포트3
레포트4
레포트5
레포트6 새 댓글이 있습니다.
레포트7
사회2
경상3
경상
경상2
사회
인문
사범
자연
공학
법학
의학
예체
기타
졸업논문
기본폴더
감상문
독후감
사업계획서
자기소개서
이력서
학교시험
자격시험
설문지
오늘 전체
방문자 128 5754256
구독자 0 98
댓글 0 7684
참조글 0 661
HanRSS 로 구독하기Fish 로 구독하기
2009 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
최근 댓글 전체보기
감사합니다.
중국미얀마가스전연결사업..
The verb sys..
Among other ..
오스만제국지배하에있던아..
최근 참조글 전체보기
Klonopin sr ..
연세대학교 중앙도서관 ..
헌법소원▶[투쟁]돈 3..
인터넷신문고▶[투쟁]돈..
인터넷신문고▶[투쟁]돈..
다녀간 블로거 더보기
- 찰리신
- yoonju57
- leeyk14
- hikarikhh
- 서울실버
 즐겨찾기
 즐겨찾기 글모음
개설일 : 2007/10/16
 

[자료구조, 알고리즘, 그래프, 너비우선, BFS] [C로 쓴 자료구조론]프로그램 6.2 그래...

2008.06.05 13:33 | 레포트6 | reportshop

http://kr.blog.yahoo.com/reportshop/110560 주소복사

// 프로그램 4.8 연결된 큐의 rear에 삽입
// 프로그램 4.9 연결된 큐의 앞으로부터 삭제
// 프로그램 6.2 그래프의 너비 우선 탐색

#include
#include
#define MAX_VERTICES 8
#define FALSE 0
#define TRUE 1


typedef struct node *node_pointer;
typedef struct node
{
    int vertex;
    node_pointer link;
};

node_pointer graph[MAX_VERTICES];
short int visited[MAX_VERTICES];


typedef struct queue *queue_pointer;
typedef struct queue
{
    int vertex;
    queue_pointer link;
};

node_pointer createnode(int data);

void bfs (int vertex);
void addq(queue_pointer *, queue_pointer *, int);
int deleteq (queue_pointer *front);

이름 2009.10.23  03:43  [77.223.252.3]

Among other things, that implies reducing subsidies that directly or indirectly increase energy use, land clearance, coastal development, and other activities that contribute to greater greenhouse gas emissions or climate change damages. ,

답글쓰기

댓글쓰기

댓글쓰기 입력폼

포스트 목록 닫기

목록보기