SlideShare a Scribd company logo
2 0 1 4 7 1 0
N e w M e m b e r
Education Seminar
Before entering the Seminar
Stack & Queue
Table of
Contents
01 Introduce 02 Stack 03 Queue 04 Solving Algorithms
Stack??
Architecture
Applications
Algorithms
Visualization
Queue??
Architecture
Applications
Algorithms
Visualization
Introduce
Part 01
Introduce
이 름 김남훈 (24-1기)
나 이 26세 (1989. 12.10)
학 교 한국기술교육대학교
전 공 인터넷 & S/W & Appliaction
주분야 C/C++/Android/SNS Linkage
openAPI/Using SDK
OOAD_Design Pattern
관심사 Library&Plug-in, Network
Big Data Mining, Language
Stack
Part 02
Stack
Stack??
접시를 쌓듯이 차곡차곡 쌓아 올린 형태의 자료구조
데이터의 삽입과 삭제가 한 쪽 끝에서만 일어남
마지막에 들어간 데이터가 제일 먼저 삭제
후입선출 구조 : LIFO(Last In, First Out)
선형리스트 구조의 특별한 형태
Part 02
Stack
Stack Applications
1) Interrupt
Part 02
Stack
Stack Applications
2) Sub Program & Recursive Function
Part 02
Stack
Stack Applications
3) Arithmetic
Part 02
Stack
Stack Architecture
1) Variables : top pointer
2) Operation : push, pop
Part 02
Stack
Stack Visualization
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
Part 02
Stack
Stack Visualization
Part 02
Stack
Stack Visualization
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Visualization
top
Part 02
Stack
Stack Algorithm
1) Push 2) Pop
Part 02
Stack
Stack Algorithm
1) C++ Code (Array)
Part 02
Stack
Stack Algorithm
1) C++ Code (Linked List)
Stack Q&A
Table of
Contents
01 Introduce 02 Stack 03 Queue 04 Solving Algorithms
Stack??
Architecture
Applications
Algorithms
Visualization
Queue??
Architecture
Applications
Algorithms
Visualization
Queue
Part 03
Queue
Queue??
리스트의 한 쪽 끝에서 자료들이 삭제
리스트의 다른 한 쪽 끝에서 자료들이 삽입
먼저 들어간 데이터가 제일 먼저 삭제
선입선출 구조 : FIFO(First In, First Out)
선형리스트 구조의 특별한 형태
후입후출 구조 : LILO(Last In, Last Out)
04 Solving Algorithms
Part 03
Queue
Queue Applications
1) Operating System Scheduling
Part 03
Queue
Queue Applications
2) I/O Buffer
Part 03
Queue
Queue Applications
3) Spooler
Part 03
Queue
Queue Architecture
1) Variables : front pointer, rear pointer
2) Operation : enQueue, deQueue
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
Part 03
Queue
Queue Visualization
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
front rear
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Visualization
front
rear
Part 03
Queue
Queue Algorithm (Array)
1) enQueue 2) deQueue
Part 03
Queue
Queue Algorithm (Array)
C++ Code
Part 03
Queue
Queue Algorithm (Linked List)
1) enQueue 2) deQueue
Part 03
Queue
Queue Algorithm (Linked List)
C++ Code
Part 03
Queue
Queue Algorithm (Linked List)
C++ Code
Queue Q&A
Table of
Contents
01 Introduce 02 Stack 03 Queue 04 Solving Algorithms
Stack??
Architecture
Applications
Algorithms
Visualization
Queue??
Architecture
Applications
Algorithms
Visualization
Solving Algorithms
Part 04
Solving Algorithms
STACK
다음과 같은 수식이 주어질 때 같은 짝의 괄호의 위치를 찾는 문제이다.
( a * ( b + c ) + d )
0 1 2 3 4 5 6 7 8 9 10
( a * ( b + c ) + d )
이 경우에는 3과 7, 0과 10이 한 쌍의 괄호이다.
입력은 공백없이 입력된다. 입력되는
문자는 소문자, 소괄호,(,+,-,*,/,)이다.
문자열의 길이는 최대 50까지 이다.
입력
왼쪽에서 오른쪽을 가면서 먼저 짝이
맞는 순으로 출력하고, 짝이 맞지 않
는 수식은 not match를 출력한다.
출력
입력 : (a*(b+c)+d)
출력 : 3 7
0 10
예시
Part 04
Solving Algorithms
QUEUE
4자리 도착수, 목적수가 주어진다.
입력
최단 거리를 출력한다.
출력
입력 : 1033 8179
출력 : 6
예시
입력 : 1373 8017
출력 : 7
입력 : 1033 1033
출력 : 0
4자리 수 2개가 주어진다. 두 수는 모두 소수(prime number)이다.
처음 수는 출발 수이고, 다음 수는 도착수이다.
어떤 수에서 다음 수로는 이전 수에서 한 자리 수 만을 변경해서 가능하다.
물론 각 단계별로 만들어지는 수도 소수여야 한다.
출발 수에서 도착수로 가는 최단 거리를 구하라.
The End

More Related Content

Viewers also liked

Social digital tech trends 2016
Social digital tech trends 2016 Social digital tech trends 2016
Social digital tech trends 2016
Karen Schulman Dupuis
 
Digital marketing Trends 2017
Digital marketing Trends 2017Digital marketing Trends 2017
Digital marketing Trends 2017
Infocrest
 
Digital Marketing Trends 2017
Digital Marketing Trends 2017Digital Marketing Trends 2017
Digital Marketing Trends 2017
Webrepublic
 
How To Be A Successful Entrepreneur
How To Be A Successful Entrepreneur How To Be A Successful Entrepreneur
How To Be A Successful Entrepreneur
Motivate Design
 
Going bananas with recursion schemes for fixed point data types
Going bananas with recursion schemes for fixed point data typesGoing bananas with recursion schemes for fixed point data types
Going bananas with recursion schemes for fixed point data types
Pawel Szulc
 
Global Technology Trends & Startup Hubs 2015
Global Technology Trends & Startup Hubs 2015Global Technology Trends & Startup Hubs 2015
Global Technology Trends & Startup Hubs 2015
Bernard Moon
 
7 Habits of Highly Effective Salespeople
7 Habits of Highly Effective Salespeople7 Habits of Highly Effective Salespeople
7 Habits of Highly Effective Salespeople
Qamaru Dheen
 
Feature perf comp_v1
Feature perf comp_v1Feature perf comp_v1
Feature perf comp_v1
InfiniFlux Korea
 
Be a Great Product Leader (Zynga 2016)
Be a Great Product Leader (Zynga 2016)Be a Great Product Leader (Zynga 2016)
Be a Great Product Leader (Zynga 2016)
Adam Nash
 
Fundamentals of data structures
Fundamentals of data structuresFundamentals of data structures
Fundamentals of data structures
Niraj Agarwal
 
The Top 10 Sales Conferences of 2016
The Top 10 Sales Conferences of 2016The Top 10 Sales Conferences of 2016
The Top 10 Sales Conferences of 2016
Peak Sales Recruiting
 
The Economic Impact of Female Entrepreneurs
The Economic Impact of Female EntrepreneursThe Economic Impact of Female Entrepreneurs
The Economic Impact of Female Entrepreneurs
Kyle Lacy
 
Make your programs Free
Make your programs FreeMake your programs Free
Make your programs Free
Pawel Szulc
 
Snapshot of Digital India - May 2015
Snapshot of Digital India - May 2015Snapshot of Digital India - May 2015
Snapshot of Digital India - May 2015
Ethinos Digital Marketing
 
People Don't Care About Your Brand
People Don't Care About Your BrandPeople Don't Care About Your Brand
People Don't Care About Your Brand
Slides That Rock
 
Words that Sell
Words that SellWords that Sell
Words that Sell
HubSpot
 
Metrics 101
Metrics 101Metrics 101
Metrics 101
Alistair Croll
 
Lessons from: 2015
Lessons from: 2015Lessons from: 2015
Lessons from: 2015
Bülent Duagi
 
100 growth hacks 100 days | 1 to 10
100 growth hacks 100 days | 1 to 10100 growth hacks 100 days | 1 to 10
100 growth hacks 100 days | 1 to 10
Robin Yjord
 

Viewers also liked (19)

Social digital tech trends 2016
Social digital tech trends 2016 Social digital tech trends 2016
Social digital tech trends 2016
 
Digital marketing Trends 2017
Digital marketing Trends 2017Digital marketing Trends 2017
Digital marketing Trends 2017
 
Digital Marketing Trends 2017
Digital Marketing Trends 2017Digital Marketing Trends 2017
Digital Marketing Trends 2017
 
How To Be A Successful Entrepreneur
How To Be A Successful Entrepreneur How To Be A Successful Entrepreneur
How To Be A Successful Entrepreneur
 
Going bananas with recursion schemes for fixed point data types
Going bananas with recursion schemes for fixed point data typesGoing bananas with recursion schemes for fixed point data types
Going bananas with recursion schemes for fixed point data types
 
Global Technology Trends & Startup Hubs 2015
Global Technology Trends & Startup Hubs 2015Global Technology Trends & Startup Hubs 2015
Global Technology Trends & Startup Hubs 2015
 
7 Habits of Highly Effective Salespeople
7 Habits of Highly Effective Salespeople7 Habits of Highly Effective Salespeople
7 Habits of Highly Effective Salespeople
 
Feature perf comp_v1
Feature perf comp_v1Feature perf comp_v1
Feature perf comp_v1
 
Be a Great Product Leader (Zynga 2016)
Be a Great Product Leader (Zynga 2016)Be a Great Product Leader (Zynga 2016)
Be a Great Product Leader (Zynga 2016)
 
Fundamentals of data structures
Fundamentals of data structuresFundamentals of data structures
Fundamentals of data structures
 
The Top 10 Sales Conferences of 2016
The Top 10 Sales Conferences of 2016The Top 10 Sales Conferences of 2016
The Top 10 Sales Conferences of 2016
 
The Economic Impact of Female Entrepreneurs
The Economic Impact of Female EntrepreneursThe Economic Impact of Female Entrepreneurs
The Economic Impact of Female Entrepreneurs
 
Make your programs Free
Make your programs FreeMake your programs Free
Make your programs Free
 
Snapshot of Digital India - May 2015
Snapshot of Digital India - May 2015Snapshot of Digital India - May 2015
Snapshot of Digital India - May 2015
 
People Don't Care About Your Brand
People Don't Care About Your BrandPeople Don't Care About Your Brand
People Don't Care About Your Brand
 
Words that Sell
Words that SellWords that Sell
Words that Sell
 
Metrics 101
Metrics 101Metrics 101
Metrics 101
 
Lessons from: 2015
Lessons from: 2015Lessons from: 2015
Lessons from: 2015
 
100 growth hacks 100 days | 1 to 10
100 growth hacks 100 days | 1 to 10100 growth hacks 100 days | 1 to 10
100 growth hacks 100 days | 1 to 10
 

Similar to Basic Data Structure stack&queue

PostgreSQL Deep Internal
PostgreSQL Deep InternalPostgreSQL Deep Internal
PostgreSQL Deep Internal
EXEM
 
[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산
[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산
[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산
S.O.P.T - Shout Our Passion Together
 
StarUML NS Guide - Design
StarUML NS Guide - DesignStarUML NS Guide - Design
StarUML NS Guide - Design
태욱 양
 
C++ 프로그래밍 2014-2018년 기말시험 기출문제
C++ 프로그래밍 2014-2018년 기말시험 기출문제C++ 프로그래밍 2014-2018년 기말시험 기출문제
C++ 프로그래밍 2014-2018년 기말시험 기출문제
Lee Sang-Ho
 
[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)
[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)
[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)
Sang Don Kim
 
SpringCamp 2013 : About Jdk8
SpringCamp 2013 : About Jdk8SpringCamp 2013 : About Jdk8
SpringCamp 2013 : About Jdk8Sangmin Lee
 
[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트
[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트
[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트
S.O.P.T - Shout Our Passion Together
 
Reflection
ReflectionReflection
Reflectionscor7910
 
불어오는 변화의 바람, From c++98 to c++11, 14
불어오는 변화의 바람, From c++98 to c++11, 14 불어오는 변화의 바람, From c++98 to c++11, 14
불어오는 변화의 바람, From c++98 to c++11, 14
명신 김
 
miss_pattern_v2
miss_pattern_v2miss_pattern_v2
miss_pattern_v2
YoungSu Son
 
KCSE 2015 Tutorial 빅데이터 분석 기술의 소프트웨어 공학 분야 활용 (...
KCSE 2015 Tutorial 빅데이터 분석 기술의  소프트웨어 공학 분야 활용 (...KCSE 2015 Tutorial 빅데이터 분석 기술의  소프트웨어 공학 분야 활용 (...
KCSE 2015 Tutorial 빅데이터 분석 기술의 소프트웨어 공학 분야 활용 (...
Chanjin Park
 
송창규, unity build로 빌드타임 반토막내기, NDC2010
송창규, unity build로 빌드타임 반토막내기, NDC2010송창규, unity build로 빌드타임 반토막내기, NDC2010
송창규, unity build로 빌드타임 반토막내기, NDC2010devCAT Studio, NEXON
 
파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)
파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)
파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)
Tae Young Lee
 
20201121 코드 삼분지계
20201121 코드 삼분지계20201121 코드 삼분지계
20201121 코드 삼분지계
Chiwon Song
 
ECMAScript 6의 새로운 것들!
ECMAScript 6의 새로운 것들!ECMAScript 6의 새로운 것들!
ECMAScript 6의 새로운 것들!
WooYoung Cho
 
Rx java essentials
Rx java essentialsRx java essentials
Rx java essentials
Byeongsu Kang
 
4. stack
4. stack4. stack
4. stack
Geunhyung Kim
 
[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기
[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기
[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기
Chris Ohk
 

Similar to Basic Data Structure stack&queue (20)

PostgreSQL Deep Internal
PostgreSQL Deep InternalPostgreSQL Deep Internal
PostgreSQL Deep Internal
 
[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산
[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산
[SOPT] 데이터 구조 및 알고리즘 스터디 - #02 : 스택, 큐, 수식 연산
 
StarUML NS Guide - Design
StarUML NS Guide - DesignStarUML NS Guide - Design
StarUML NS Guide - Design
 
C++ 프로그래밍 2014-2018년 기말시험 기출문제
C++ 프로그래밍 2014-2018년 기말시험 기출문제C++ 프로그래밍 2014-2018년 기말시험 기출문제
C++ 프로그래밍 2014-2018년 기말시험 기출문제
 
[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)
[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)
[Td 2015]너에게만 나는 반응해 반응형 응용프로그램(이규원)
 
SpringCamp 2013 : About Jdk8
SpringCamp 2013 : About Jdk8SpringCamp 2013 : About Jdk8
SpringCamp 2013 : About Jdk8
 
강의자료3
강의자료3강의자료3
강의자료3
 
[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트
[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트
[SOPT] 데이터 구조 및 알고리즘 스터디 - #01 : 개요, 점근적 복잡도, 배열, 연결리스트
 
Reflection
ReflectionReflection
Reflection
 
불어오는 변화의 바람, From c++98 to c++11, 14
불어오는 변화의 바람, From c++98 to c++11, 14 불어오는 변화의 바람, From c++98 to c++11, 14
불어오는 변화의 바람, From c++98 to c++11, 14
 
miss_pattern_v2
miss_pattern_v2miss_pattern_v2
miss_pattern_v2
 
KCSE 2015 Tutorial 빅데이터 분석 기술의 소프트웨어 공학 분야 활용 (...
KCSE 2015 Tutorial 빅데이터 분석 기술의  소프트웨어 공학 분야 활용 (...KCSE 2015 Tutorial 빅데이터 분석 기술의  소프트웨어 공학 분야 활용 (...
KCSE 2015 Tutorial 빅데이터 분석 기술의 소프트웨어 공학 분야 활용 (...
 
강의자료 2
강의자료 2강의자료 2
강의자료 2
 
송창규, unity build로 빌드타임 반토막내기, NDC2010
송창규, unity build로 빌드타임 반토막내기, NDC2010송창규, unity build로 빌드타임 반토막내기, NDC2010
송창규, unity build로 빌드타임 반토막내기, NDC2010
 
파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)
파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)
파이썬 데이터과학 레벨2 - 데이터 시각화와 실전 데이터분석, 그리고 머신러닝 입문 (2020년 이태영)
 
20201121 코드 삼분지계
20201121 코드 삼분지계20201121 코드 삼분지계
20201121 코드 삼분지계
 
ECMAScript 6의 새로운 것들!
ECMAScript 6의 새로운 것들!ECMAScript 6의 새로운 것들!
ECMAScript 6의 새로운 것들!
 
Rx java essentials
Rx java essentialsRx java essentials
Rx java essentials
 
4. stack
4. stack4. stack
4. stack
 
[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기
[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기
[C++ Korea 3rd Seminar] 새 C++은 새 Visual Studio에, 좌충우돌 마이그레이션 이야기
 

Basic Data Structure stack&queue