환의 게임 정보글

  • 홈
  • 태그
  • 방명록

버블 정렬 #bubble sort #프로그래밍 1

버블 정렬(Bubble Sort)

버블 정렬은 리스트를 반복적으로 순회하며 인접한 두 요소를 비교하고, 잘못된 순서라면 교환합니다. 모든 요소를 여러 번 비교해야 하기 때문에 일반적으론 비효율적입니다. 여기서 두 요소를 비교, 교환은 앞써 쓴 글인 삽입 정렬 (Insertion Sort)과 비슷하지만 비교 방식과 에서 다른 형태를 가지고 있습니다. 그림으로 설명하겠습니다.삽입 정렬: 순차적으로 리스트를 확인하며 두 요소를 비교, 정렬하는 방식버블 정렬: 리스트를 반복 순회하며 두 요소를 비교, 정렬하는 방식즉, 버블 정렬은 리스트를 계속 순회하기 때문에 삽입 정렬보다 비효율적인 정렬 방식입니다.#include #include #include #define MAX_LEN 10// Init: Initializationvoid InitRand..

프로그래밍 C언어 2024.08.27
이전
1
다음
더보기
프로필사진

환의 게임 정보글

김제환 개인용 게임 프로그래밍, 기획 정보 모음 블로그

  • 분류 전체보기 (56)
    • 게임 분석 (0)
    • 프로그래밍 C언어 (28)
    • 프로그래밍 C#언어 (11)
    • 프로그래밍의 이해 (0)
    • 유니티(Unity) 프로그래밍 (16)

Tag

animation #animator #prefabs #humanoid, 버블 정렬 #bubble sort #프로그래밍, generic #template #데이터 타입 #single #double #type #프로그래밍 #c#, -= #time.deltatime #frame #random #프로그래밍 #유니티 #게임, struct #구조체 #point #포인터 #method #메서드 #cs #c# #프로그래밍, 상속 #inheritance #부모 #자식 #class #프로그래밍, animation #unity #animator #sprite, 대리자 #delegate #boxing #unboxing #generic #제네릭 #컬렉션 #collection #익명 #무명 #메서드 #method #프로그래밍 #c#, interface #destroy #instantiate #random #serializefield #프로그래밍 #c# #유니티 #unity3d, coupling #상속 #소유 #?. #null #프로그래밍 #c#, 문자열 #string #garbage #+, axis #translate #axis # horioztal #vertical #unity, 절두체 #frustum #gta #카메라 #rendering #렌더링 #유니티 #unity, stack #queue #prefabs #unity, unity3d #rigidbody #collider #trigger #getkey #transform #position #프로그래밍, c# #객체 #인스턴스 #메서드 #객체 지향, picking #prefab #rotate #position #unity3d #vector3, cast #trigger #collision #collider #picking #layer #unity3d, 대리자 #delegate #스폰지밥, 추격 #추적 #딸깍 #vector3 #벡터 #연산 #normalize #정규화 #time.deltatime #프로그래밍 #유니티, ui #canvas #unity, 클래스 #자식 #부모 #abstract #interface #override #overload #virtual #형변환 #c# #프로그래밍, angle #second #minute #hour #mathf #cos #sin #degree #radian #unity #시계, quick sort #퀵 정렬 #pivot #피벗, button #image #ui #font #text #unity, datatype #signed #unsigned #c# #프로그래밍, insertion sort #삽입 정렬 #인덱스 #프로그래밍, inheritance #상속 #parent #부모 #child #자식 #class, delegate #대리자 #function pointer #함수 포인터 #중개업 #프로그래밍 #c, c# #array #jagged array #배열 #다차원 배열 #프로그래밍,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바