反智久大聯盟

@yodazo

Private team

Joined on Jun 5, 2021

  • https://www.slader.com/textbook/9781259676512-discrete-mathematics-and-its-applications-8th-edition/ 9.6: Which of these relations on{0,1,2,3}are partial order-ings? Determine the properties of a partial ordering that the others lack. Is (S, R)aposetifSis the set of all people in the worldand (a, b)∈R,whereaandbare people, if 6 9-11
     Like  Bookmark
  • Relation p.19 9-6 定義 chopper的草稿 偏序: 自反,傳遞,反對稱,不一定每個元素都可比較 全序:集合之中每個元素都可比較
     Like  Bookmark
  • (20 points) Describe the steps that transform a program written in a high-level language such as C into a representation that is directly executed by a computer processor. $\text{Ans}:$ 先將高階語言經過編譯器變成組合語言,在將組合語言經過組譯器變成二元機器語言 Consider two different implementations (P1 and P2) of the same instruction set architecture. The instructions can be divided into four classes (A, B, C, and D) according to their CPI. P1 with a clock rate of 2.5 GHz and CPIs of 1, 2, 3, and 3, and P2 with a clock rate of 3 GHz and CPIs of 2, 2, 2, and 2. Given a program with a dynamic instruction count of $1.0 × 10^6$ instructions divided into classes as follows: 10% class A, 20% class B, 50% class C, and 20% class D. (a) (15 points) What is the global CPI for each implementation? $\text{CPI}\text{P1} = \frac{1×0.1+2×0.2+3×0.5+3×0.2}{1}=2.6$ $\text{CPI}\text{P2} = \frac{2×0.1+2×0.2+2×0.5+2×0.2}{1}=2$ (b) (15 points) Find the clock cycles required in both cases. $\text{CPU Clock Cycle}\text{P1} = 2.6\times10^6$ $\text{CPU Clock Cycle}\text{P2} = 2.0\times10^6$
     Like  Bookmark
  • 一、 是非題(12%) ( X ) 1. atomic( X) is false if X currently stands for a number or an atom. ( X ) 2. ‘not’ is a unary predicate and can be defined as not( P):- P, !, true; fail. ( O ) 3. In the programs with cuts, a change in the order of clauses may affect the declarative meaning. For example, the declarative meaning of the clauses (1) p :- a, !, b, d. (2) p :- c. is p <==> (~a & c) V (a & b & d).
     Like  Bookmark