본문 바로가기

전체 글

(144)
M.Fattah Discrete Mathematics 1.Sets workbook - 2 collections of subsets if and only if Partition of S empty set
M.Fattah Discrete Mathematics 1.Sets workbook - 1 The power set is a set which includes all the subsets including the empty set and the original set itself. It is usually denoted by P. Z denotes the set of integers An integer is the number zero (0), a positive natural number (1, 2, 3, etc.) or a negative integer with a minus sign (−1, −2, −3, etc.). Cardinality is the number of elements in a given mathematical set The power set is the set that ..
파이썬 == 연산자 활용 예시 x = 5 y = 3 print(x == y) # returns False because 5 is not equal to 3 (출처: w3schools)
K-mooc 자료구조 및 알고리즘 2주차 1차시 퀴즈만들기 문제: 다차원 배열을 저장하는 방법 중 행우선순서의 두가지 주소계산법을 적으시오. 답: 2차원 배열: A[upper0][upper1 ] 3차원 배열: A[upper0][upper1][upper2] 참고:
k-mooc 자료구조 및 알고리즘 1주차 2차시 퀴즈 만들기 문제: 점근표기법의 세 가지 방법을 명칭과 함께 그리스문자로 쓰시오. 답: 빅오(O), 오메가(Ω), 세타(Θ).
K-MOOC 자료구조 1-1 퀴즈2 이 퀴즈를 풀기에 피지컬이 모자란다. (20:43) // (23:01) 객관식이어서 앞의 두 출력값만 구하고 퀴즈를 맞추었다. 프로그램의 로직을 수기로 따라갈 때에는 구조적으로 해야함을 배웠다.
Chapter.2 Programming Projects 1. Write a program that uses printf to display the following picture on the screen: * * * * * * * * my sol) #include int main() { printf(" *\n"); printf(" *\n"); printf(" *\n"); printf("* *\n"); printf(" * *\n"); printf(" * \n"); return 0; } 2. Write a program that computes the volume of a sphere with a 10-meter radius, using the formula v = 4/3πr^3. Write the fraction 4/3 as 4.0f/3.0f (Try writ..
Chapter 2. 연습문제 3. Condense the dweight.c program by (1) replacing the assignmetns to height, length, and width with initializers and (2) removing the weight variable, instead calculating (volume + 165) / 166 within the last printf. 정답: #include int main(void) { int height = 8 , length = 12 , width = 10, volume; volume = height * length * width; printf("Dimensions: %dx%dx%d\n", length, width, height); printf("V..