-
[JS 알고리즘&자료구조] 문제 해결법 소개JavaScript/Basic 2023. 10. 30. 23:00
알고리즘이란 무엇일까?
알고리즘은 특정 작업을 달성하기 위한 과정이나 일련의 단계를 말한다. 문제를 해결하기 위한 일련의 수학적 단계도 있고 혹은 특정한 광고를 추천하는 메타나 구글의 알고리즘 등도 존재한다. (수많은 개발자의 엄청난 노력이 들어갔을 것으로 추정되🙄)
그러나 결국 알고리즘은 어떤 작업을 달성하기 위한 일련의 단계에 불과하다.
우리는 이런 알고리즘을 왜 배워야만 할까?
프로그래밍을 통해 수행하는 모든 작업에는 그것이 단순하든 복잡하든 알고리즘이 포함되어야 한다. 특정 결과를 도출하기 위한 최적의 방법을 찾아야만 한다. 이처럼 알고리즘은 굉장히 중요하지만 이 강의에서는 알고리즘의 정의를 굉장히 좁게 가져가고자 한다. 우리가 이 강의를 통해 얻고자 하는 것은 인스타그램의 알고리즘을 분석하고 파악하는 것이 아닌 면접을 위한 알고리즘을 파악하려고 하는 것이기 때문이다.
그렇다면 알고리즘에 대한 실력(?)은 어떻게 늘릴 수 있을까?
대체로 사람들은 알고리즘에 대한 이해력은 타고난 것이라고 생각하며 물론 실제로 문제 해결에 능숙하거나 두뇌 회전이 빠른 사람들은 존재한다. 하지만 노력은 배신하지 않는다! 😊 방법을 알고 제대로 수행만 한다면 여전히 어렵긴 하더라도 문제를 해결할 수는 있다. 그렇다면 실력을 향상시키기 위한 방법은 어떤 게 있을까?
- 문제 해결을 위한 계획을 수립한다.
- 일반적인 문제 해결 패턴을 파악한다.
다음 장에서부터 구체적으로 문제 해결을 위해 어떤 방법들이 있는지 살펴보자.
'JavaScript > Basic' 카테고리의 다른 글
[JS 알고리즘&자료구조] 구체적 예제들 (0) 2023.10.30 [JS 알고리즘&자료구조] 문제의 이해 (0) 2023.10.30 [JS 알고리즘&자료구조] Big O 배열 메소드 (0) 2023.10.30 [JS 알고리즘&자료구조] 배열 안의 데이터에 접근이 느린 이유 (0) 2023.10.30 [JS 알고리즘&자료구조] 객체의 Big O (2) 2023.10.30