๐Ÿ“—
JunegLee's TIL
  • TIL
  • python
    • class
    • String Basic
    • regularExpression
    • String function
    • Generator
    • String format
    • getset
    • module
    • while
    • numpy
    • print()
    • matplotlib
    • for
    • Boolean
    • tuple
    • package
    • input(variable)
    • list
    • if
    • file
    • type()
    • pandas
    • function
    • dictionary
    • ๊ตฌ๋ฌธ ์˜ค๋ฅ˜์™€ ์˜ˆ์™ธ
    • builtinFunction
    • Constructor
  • algorithm
    • sort
      • mergeSort
      • insertionSort
      • bubbleSort
      • heapSort
      • quickSort
      • selectionSort
    • recursion
    • Greedy
    • DepthFirstSearch
    • basic
      • DataStructure
    • hash
    • BreadthFirstSearch
  • tensorflow
    • keras
      • layers
        • Flatten
        • Flatten
        • Dense
        • Dense
        • Conv2D
        • Conv2D
    • tensorflow1x
    • tensorflow2x
  • DB
    • setting
    • join
    • subQuery
    • overview
  • deep-learning
    • neuralNetwork
    • perceptron
    • neuralNetworkLearning
    • convolution neural network
    • Gradient Descent
    • Linear Regression
    • backPropagation
    • logistic regression
    • overview
  • textPreprocessing
    • overview
  • java
    • basics
      • generic
      • Variable
      • String
    • theory
      • Object Oriented Programing
  • NLP
    • Embedding
    • Natural Language Processing
Powered by GitBook
On this page
  • Data Structure
  • ์ž๋ฃŒ๊ตฌ์กฐ์˜ ๋ถ„๋ฅ˜
  • ์‹œ๊ฐ„ ๋ณต์žก๋„

Was this helpful?

  1. algorithm
  2. basic

DataStructure

PreviousbasicNexthash

Last updated 3 years ago

Was this helpful?

Data Structure

์ž๋ฃŒ๊ตฌ์กฐ์˜ ๋ถ„๋ฅ˜

  • ์„ ํ˜•๊ตฌ์กฐ

    : ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•  ๋•Œ ์—ฐ์†์ ์ธ ๊ธฐ์–ต ๊ณต๊ฐ„์— ๋ฐฐ์ •ํ•˜๋Š” ์ž๋ฃŒ๊ตฌ์กฐ(๋ฐฐ์—ด, ์Šคํƒ, ํ, ๋ฐํฌ, ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ)

  • ๋น„์„ ํ˜• ๊ตฌ์กฐ

    : ๊ธฐ์–ต ๊ณต๊ฐ„ ๋‚ด์˜ ์œ„์น˜์™€ ๋ณ„๊ฐœ๋กœ ๋…๋ฆฝํ•˜์—ฌ ์ €์žฅํ•˜๋Š” ๊ตฌ์กฐ (ํŠธ๋ฆฌ, ๊ทธ๋ž˜ํ”„)

์‹œ๊ฐ„ ๋ณต์žก๋„

  • ์—ฐ์‚ฐ ์‹œ๊ฐ„์˜ ํฌ๊ธฐ ์ˆœ์„œ

    O(1) < O(logn) < O(n) < O(nlogn) < O(n^2) < O(n^3) < O(2^n) < O(n!)

  • O(1)์ด ๊ฐ€์žฅ ๋น ๋ฅด๋ฉฐ ํ•ด์‰ฌ ๊ฒ€์ƒ‰ ์•Œ๊ณ ๋ฆฌ์ฆ˜์—์„œ ์‚ฌ์šฉ๋œ๋‹ค.

Reference : naver d2
DataStructure
TimeComplexity