Luyện tập / Chủ đề Logic · Tư duy

Luyện tập Logic (Tư duy Logic)

Bài tập suy luận logic, nhận diện quy luật, bài toán cân đo, câu đố chiến thuật và tư duy thuật toán.

Câu đố tư duy

Rèn tư duy hình học và suy luận logic qua 5 loại câu đố tương tác trực quan.

Tangram

Ghép 7 mảnh xoay & lật

Có 820 bài tập Logic · Tư duy · khối Lớp 11 · Trang 55/55 (Question 811–820)

Điểm: 0/10

Question 811

Trung bình · +20 điểm

Đề: IKMC Practice · Phong cách Student (Lớp 11–12) · Đề #09 (30 câu) · Question 29 · Lớp 11–12

A rectangular sheet of paper is folded in half $2$ times in succession, and then $2$ separate hole(s) are punched straight through all layers (away from the folds). When unfolded, how many holes are in the sheet?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $8$

Folding in half $2$ times creates $2^{2} = 4$ layers, so $2$ punch(es) produce $4 \times 2 = 8$ holes.

Question 812

Trung bình · +20 điểm

Đề: IKMC Practice · Phong cách Student (Lớp 11–12) · Đề #10 (30 câu) · Question 14 · Lớp 11–12

A rectangular sheet of paper is folded in half $3$ times in succession, and then $2$ separate hole(s) are punched straight through all layers (away from the folds). When unfolded, how many holes are in the sheet?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $16$

Folding in half $3$ times creates $2^{3} = 8$ layers, so $2$ punch(es) produce $8 \times 2 = 16$ holes.

Question 813

Trung bình · +20 điểm

Đề: IKMC Practice · Phong cách Student (Lớp 11–12) · Đề #10 (30 câu) · Question 29 · Lớp 11–12

A rectangular sheet of paper is folded in half $4$ times in succession, and then $3$ separate hole(s) are punched straight through all layers (away from the folds). When unfolded, how many holes are in the sheet?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $48$

Folding in half $4$ times creates $2^{4} = 16$ layers, so $3$ punch(es) produce $16 \times 3 = 48$ holes.

Exactly one of Lily, Sam, and Lucas ate the last cupcake, and exactly one of them is telling the truth:

  • Lily says: “Sam ate it.”
  • Sam says: “I did not eat it.”
  • Lucas says: “I did not eat it.”

Who ate the cupcake?

Hình minh họa câu 3
Chọn đáp án

Xem đáp án và lời giải

Đáp án: Lucas

  • Nếu Lily ăn: cả Sam và Lucas đều nói thật (2 người nói thật, loại).
  • Nếu Sam ăn: cả Lily và Lucas đều nói thật (2 người nói thật, loại).
  • Nếu Lucas ăn: Lily nói dối, Sam nói thật, Lucas nói dối (đúng 1 người nói thật!). Vậy Lucas đã ăn bánh.

[Part C · Hard] In the Knuth–Morris–Pratt (KMP) string-matching algorithm, the prefix array $\pi[i]$ stores the length of the longest proper prefix of P[0..i] that is also a suffix of P[0..i] (proper means strictly shorter than P[0..i]). For pattern P = "ABABACA" ($7$ characters, $0$-indexed $i = 0..6$), compute the sum $\pi[0] + \pi[1] + \pi[2] + \pi[3] + \pi[4] + \pi[5] + \pi[6]$.

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $7$

Answer / Đáp án: 7

Step-by-step (EN): Compute $\pi[i]$ for each prefix of "ABABACA":

  • i=0 ("A"): $0$
  • i=1 ("AB"): $0$
  • i=2 ("ABA"): $1$ ("A")
  • i=3 ("ABAB"): $2$ ("AB")
  • i=4 ("ABABA"): $3$ ("ABA")
  • i=5 ("ABABAC"): $0$
  • i=6 ("ABABACA"): $1$ ("A").

Sum $= 0 + 0 + 1 + 2 + 3 + 0 + 1 = 7$.

Giải chi tiết (VI): Tính lần lượt $\pi[i]$ cho từng tiền tố của "ABABACA":

  • "A" $\to 0$; "AB" $\to 0$; "ABA" $\to 1$ ("A"); "ABAB" $\to 2$ ("AB"); "ABABA" $\to 3$ ("ABA"); "ABABAC" $\to 0$; "ABABACA" $\to 1$ ("A").

Tổng các phần tử là $0 + 0 + 1 + 2 + 3 + 0 + 1 = 7$.

Computational Thinking / Tư duy Máy tính: KMP Prefix Automaton / Failure Function (Hàm thất bại trong so khớp xâu tuyến tính KMP).

[Part C · Hard] Consider the 2-SAT Boolean formula with $4$ variables $(x_1, x_2, x_3, x_4) \in \{\text{True}, \text{False}\}^4$: $$(x_1 \lor x_2) \land (\neg x_1 \lor x_3) \land (\neg x_2 \lor x_3) \land (\neg x_3 \lor x_4) \land (\neg x_4 \lor \neg x_3).$$ How many truth assignments $(x_1, x_2, x_3, x_4)$ satisfy the entire formula?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $0$ (Unsatisfiable)

Answer / Đáp án: $0$ (Unsatisfiable / Vô nghiệm)

Step-by-step (EN): Convert clauses $A \lor B \equiv (\neg A \Rightarrow B)$: 1) Last two clauses $(\neg x_3 \lor x_4) \land (\neg x_4 \lor \neg x_3)$ give $x_3 \Rightarrow x_4 \Rightarrow \neg x_3$, forcing $x_3 = \text{False}$. 2) With $x_3 = \text{False}$, clauses $(\neg x_1 \lor x_3)$ and $(\neg x_2 \lor x_3)$ force $x_1 = \text{False}$ and $x_2 = \text{False}$. 3) That violates the first clause $(x_1 \lor x_2)$! Hence $0$ satisfying assignments.

Giải chi tiết (VI): Biến đổi về kéo theo logic: 1) Hai mệnh đề cuối $(\neg x_3 \lor x_4)$ và $(\neg x_4 \lor \neg x_3)$ kéo theo $x_3 \Rightarrow x_4 \Rightarrow \neg x_3$, buộc $x_3 = \text{Sai}$. 2) Thay $x_3 = \text{Sai}$ vào $(\neg x_1 \lor x_3)$ và $(\neg x_2 \lor x_3)$ buộc cả $x_1 = \text{Sai}$ và $x_2 = \text{Sai}$. 3) Khi đó mệnh đề đầu $(x_1 \lor x_2)$ bị Sai! Vậy có $0$ bộ nghiệm thỏa mãn.

Computational Thinking / Tư duy Máy tính: 2-SAT Implication Graphs & Unit Propagation (Đồ thị suy diễn 2-SAT).

[Part C · Hard] In the Byzantine Generals Problem, $n$ distributed servers communicate via point-to-point messages to reach strict consensus, even if up to $f$ servers are Byzantine faulty (they may lie, collude, and send contradictory messages to different peers, without cryptographic signatures). According to Lamport, Shostak, and Pease's Theorem, what is the minimum total number of servers $n$ required to tolerate $f = 2$ Byzantine traitors?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $n = 7$

Answer / Đáp án: $n = 7$

Step-by-step (EN): Byzantine Fault Tolerance (BFT) without digital signatures requires strictly more than two-thirds honest nodes: $$n \geqslant 3f + 1.$$ For $f = 2$, the minimum number of servers is $n = 3(2) + 1 = 7$.

Giải chi tiết (VI): Để đạt đồng thuận chịu lỗi Byzantine (BFT), tổng số nút phải lớn hơn $3$ lần số nút lỗi: $$n \geqslant 3f + 1.$$ Với $f = 2$, số máy chủ tối thiểu cần có là $n = 3 \times 2 + 1 = 7$.

Computational Thinking / Tư duy Máy tính: Distributed Consensus & Byzantine Fault Tolerance $3f + 1$ (Đồng thuận phân tán & Chịu lỗi Byzantine).

In schedule #6, four independent jobs take 4, 5, 6, 5 minutes. With $2$ identical workers working in parallel (each job runs on $1$ worker without interruption), what is the minimum total time to finish all $4$ jobs?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $10$

Chia tối ưu thành 2 nhóm có thời gian gần nhau nhất, thời gian hoàn thành ngắn nhất là $10$ phút.

A robot starts facing North and executes Turn Right 90° exactly $26$ times. Which direction is it facing at the end?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: South

Sau mỗi $4$ lần quay $90^\circ$ robot lại hướng North. Vì $26 : 4$ dư $2$, robot hướng South.

Cài đặt ứng dụng O₂ Education

Thêm O₂ Education vào Màn hình chính trên iPhone / iPad để học nhanh như ứng dụng gốc:

  1. Nhấn biểu tượng Chia sẻ trên thanh công cụ Safari.
  2. Cuộn xuống và chọn Thêm vào MH chính (Add to Home Screen).
  3. Nhấn Thêm ở góc trên bên phải để hoàn tất.