목록2025/01 (37)
Machineboy空

project 1에서 만든 chipset을 가지고 Adder를 만들 것이고, 다음으로는 ALU(Arithmetic Logic Unit)을 만들것이다.그리고 그걸로 CPU(Central Processing Unit)을 만들 것이다.Adder : chips designed to add numbersALU(Arithmetic Logic Unit) : designed to perform whole set of arithmetic and logical operations, computer's calculating brainCPU(Central Processing Unit) : ALU as the counterpiece chip Key Conceptbinary numbersbinary additiontwo's co..

문제요약이진탐색을 통해 찾는 숫자를 찾아 인덱스를 반환하라.없다면 -1을 반환하라. https://exercism.org/tracks/csharp/exercises/binary-search/iterations ExercismLearn, practice and get world-class mentoring in over 50 languages. 100% free.exercism.org난이도Easy풀이 포인트Binary Search 아이디어REVIEW Excercism에서 푼 문제가 30여개가 넘어가다보니 느끼는 점은,문제 구성이 참 좋다. 기본에 충실하면서도 다양한 CS 토픽이나, 흥미로운 스토리 들을 근간으로 문제를 내고 있어서 상식도 나름 쌓인다. 여튼 이진탐색을 또 오랜만에 풀었는데, 작동 원리가 이..

https://terms.naver.com/entry.naver?docId=3405109&cid=47324&categoryId=47324 보수10에 대한 3의 보수란 10-3, 즉 7을 말한다. 일반적으로 n에 대한 m의 보수는 n-m을 뜻하는데, 보수는 m에서 n을 만들기 위해 보충해야 하는 수 n-m을 가리키는 용어다. [목차] 1.십진법에서 보수의 응용terms.naver.com

문제요약레지스터의 저항값을 나타내는 코드와 색상 매칭https://exercism.org/tracks/csharp/exercises/resistor-color Resistor Color in C# on ExercismCan you solve Resistor Color in C#? Improve your C# skills with support from our world-class team of mentors.exercism.org난이도Easy풀이 포인트DictionaryArrayREVIEW 우선 색상과 숫자 간의 쌍을 나타내니, 딕셔너리를 써야겠다고 생각했다.C#으로 딕셔너리를 어떻게 선언하고 사용하는지 또 무지해서 헤맸다.그런데 모범 답안을 보니, 색상에 해당하는 숫자값이 단순히 0부터 차례로 할당되는..

객체지향 프로그래밍(OOP, object oriented programming)이란?코드 내 모든 것을 객체(Object)로 표현하려는 프로그래밍 패러다임 객체(Object) : 세상의 모든 것(ex. 사람, 연필, 자동차, 파일, 모니터, 상품 주문 등) 어떻게? 객체의 주요 특징 (속성, 기능)만 뽑아내서 코드로 표현하자! 객체 : 사람속성(데이터): 피부색, 키, 몸무게기능(메소드): 걷기, 뛰기, 보기, 듣기Class란?객체(Object)를 만들기 위한 청사진클래스(Class) : 자동차 설계도, 실체 X자동차가 어떤 속성과 기능을 가져야 하는지 지정속성 중에 변경가능한 것과 변경 불가능한 것을 결정객체(Object) : 생산된 실제 자동차, 실체 O클래스를 이용해 만든 객체는 실체를 가진다.동일..

문제요약격자 8방향으로 탐색현재 셀이 1 : 주변 셀 중 1이 2개 혹은 3개이면 그대로 1, 아니면 0현재 셀이 0: 주변 셀 중 1이 3개이면 1, 아니면 그대로 0https://exercism.org/tracks/csharp/exercises/game-of-life/iterations ExercismLearn, practice and get world-class mentoring in over 50 languages. 100% free.exercism.org난이도Medium풀이 포인트DFS배열 복사REVIEW 반가운 DFS 문제! DFS를 꽤 좋아하는 편이라 반가웠다.배열이 참조타입이기 때문에 그대로 복사해서 쓸 경우 원본도 같이 훼손된다는 것을 간과해서 틀렸다..그리고 excercism 내의 편집..
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Conway's Game of Life - WikipediaFrom Wikipedia, the free encyclopedia Two-dimensional cellular automaton "Conway game" redirects here. For Conway's surreal number game theory, see Surreal number. A single Gosper's glider gun creating gliders A screenshot of a puffer-type breeder (red) then.wikipedia.orghttps://namu.wiki/w/%EC%BD%98%EC%9B%A8%..

1) Or8way/** * 8-way Or gate: * out = in[0] Or in[1] Or ... Or in[7] */CHIP Or8Way { IN in[8]; OUT out; PARTS: Or(a=in[0], b=in[1], out=or1); Or(a=in[2], b=in[3], out=or2); Or(a=in[4], b=in[5], out=or3); Or(a=in[6], b=in[7], out=or4); Or(a=or1, b=or2, out=or5); Or(a=or3, b=or4, out=or6); Or(a=or5, b=or6, out=out); }2) Mux4Way16/** * 4-way 16-bit multiplexor: * o..