Skip to content · ⁨본문 바로가기⁩

Searching: linear and binary · ⁨검색: 선형 및 이진⁩

English

Two ways to search

  • Searching means finding where a value is in an array (or saying it is not there).
  • Linear search checks every item one by one. It works on any array.
  • Binary search is much faster but needs the array to be sorted first.
한국어

두 가지 검색 방법

  • 검색한다는 것은 배열 내에서 값이 어디에 있는지 찾거나, 존재하지 않음을 알리는 것입니다.
  • 선형 검색은 모든 항목을 하나씩 확인합니다. 어떤 배열에서도 작동합니다.
  • 이진 검색은 훨씬 빠르지만, 먼저 배열이 정렬되어 있어야 합니다.

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP