본문 바로가기

Lobo's study room/c lang.

Queue, Circular Queue, Linked list

#큐

first in, first out

#원형 큐. circular queue

나머지 연산 큐.

#LInked list

연결(Linked) List vs Array

 

#Array

1 2 3 4 5 6 7 8 9 1000

장점 : random access

단점 : 임의위치 삽입. 삭제


#Linked LIst

장점 : 삽입 삭제 o

단점 : 순차접근(sequential access)

Struct node*

 

Struct node{

int data;

Struct node next;

};//자기참조 구조체

 

'Lobo's study room > c lang.' 카테고리의 다른 글

ASC II 코드와 UNI-code  (0) 2022.04.11
부동소수점과 정규화  (0) 2022.04.11
부호 절대치 표현과 보수  (0) 2022.04.10
컴퓨터와 비트  (0) 2022.04.09
C lang. 개발 환경 세팅  (0) 2022.01.14