ํŠน์ • ๋ชจ๋“ˆ์ด ๋‹ค๋ฅธ ๋ชจ๋“ˆ์— ์˜์กดํ•˜๋Š” ์ •๋„

  • ์ปคํ”Œ๋ง์ด ์‹ฌํ•ด์ง„ ์ฝ”๋“œ๋ฅผ ์ŠคํŒŒ๊ฒŒํ‹ฐ ์ฝ”๋“œ๋ผ ํ•จ

์‚ดํŽด๋ด์•ผ ํ•  ๊ฒƒ๋“ค

  • ์™œ ๊ฒฐํ•ฉ๋„๊ฐ€ ๋†’์•„์กŒ๋Š”๊ฐ€?
  • ์–ด๋–ป๊ฒŒํ•˜๋ฉด ๊ทธ ๊ฒฐํ•ฉ๋„๋ฅผ ๋‚ฎ์ถœ ์ˆ˜ ์žˆ๋Š”๊ฐ€?

์ข…๋ฅ˜ (๊ฐ•ํ•œ์ˆœ์„œ๋กœ)

  • ๋‚ด์šฉ๊ฒฐํ•ฉ๋„
    • ํ•˜๋‚˜์˜ ๋ชจ๋“ˆ์ด ๋‹ค๋ฅธ ๋ชจ๋“ˆ์˜ ๋‚ด๋ถ€ ๋™์ž‘์„ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜ ์˜์กดํ•˜๋Š” ์ƒํƒœ
    • ๋‹ค๋ฅธ ๋ชจ๋“ˆ์˜ ๋กœ์ปฌ ๋ฐ์ดํ„ฐ์˜ ์ ‘๊ทผํ•˜๋Š” ๊ฒฝ์šฐ
    • A ๋ชจ๋“ˆ์˜ ๋ฐ์ดํ„ฐ ์ƒ์„ฑ ๋ฐฉ๋ฒ•์„ ๋ณ€๊ฒฝํ•˜๋ฉด B ๋ชจ๋“ˆ์˜ ๋ณ€๊ฒฝ์ด ํ•„์š”
  • ๊ณตํ†ต๊ฒฐํ•ฉ๋„
    • ๋‘ ๊ฐœ์˜ ๋ชจ๋“ˆ์ด ๊ฐ™์€ ์ „์—ญ ๋ณ€์ˆ˜๋ฅผ ๊ณต์œ ํ•˜๋Š” ์ƒํƒœ
  • ์™ธ๋ถ€๊ฒฐํ•ฉ๋„
    • ๋‘ ๊ฐœ์˜ ๋ชจ๋“ˆ์ด ์™ธ๋ถ€์—์„œ ๋„์ž…๋œ ๋ฐ์ดํ„ฐ ํฌ๋งท, ํ†ต์‹  ํ”„๋กœํ† ์ฝœ, ๋””๋ฐ”์ด์Šค ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๊ณต์œ ํ•˜๋Š” ์ƒํƒœ
    • ์™ธ๋ถ€ ํˆด์ด๋‚˜ ๋””๋ฐ”์ด์Šค ํ†ต์‹ ๊ณผ ๊ด€๋ จ์ด ์žˆ์Œ
  • ์ œ์–ด๊ฒฐํ•ฉ๋„
    • ํ•˜๋‚˜์˜ ๋ชจ๋“ˆ์ด ๋‹ค๋ฅธ ๋ชจ๋“ˆ๋กœ ์ •๋ณด๋ฅผ ๋„˜๊ฒจ ํ๋ฆ„์„ ์ œ์–ดํ•˜๋Š” ๊ฒฝ์šฐ๋ฅผ ๋งํ•จ
  • ์Šคํƒฌํ”„๊ฒฐํ•ฉ๋„
    • ๋ณตํ•ฉ ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ(Array, Dictionary)๋ฅผ ๊ณต์œ ํ•˜๊ณ , ๊ทธ ์ผ๋ถ€๋งŒ ์‚ฌ์šฉ
  • ์ž๋ฃŒ๊ฒฐํ•ฉ๋„
    • ๋ชจ๋“ˆ๋“ค์ด ์ž๋ฃŒ์š”์†Œ ์„ฑ๊ฒฉ์˜ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฅผ ๊ณต์œ ํ•˜๋Š” ๊ฒฝ์šฐ
  • ๋ฉ”์‹œ์ง€๊ฒฐํ•ฉ๋„
    • ๋ฉ”์‹œ์ง€ ํŒจ์‹ฑ์„ ํ†ตํ•ด ์ด๋ฃจ์–ด์ง

Reference