Advertisement
Kosty_Fomin

Untitled

Oct 16th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 11.69 KB | None | 0 0
  1. \documentclass[a4paper,12pt]{report} % формат бумаги А4, шрифт по умолчанию - 12pt
  2. % заметь, что в квадратных скобках вводятся необязательные аргументы пакетов.
  3. % а в фигурных - обязательные
  4. \usepackage[T2A]{fontenc} % поддержка кириллицы в Латехе
  5. \usepackage[utf8]{inputenc} % включаю кодировку ютф8
  6. \usepackage[english,russian]{babel} % использую русский и английский языки с переносами
  7. \usepackage{indentfirst} % делать отступ в начале параграфа
  8. \usepackage{amsmath} % математические штуковины
  9. \usepackage{mathtools} % еще математические штуковины
  10. \usepackage{mathtext}
  11. \usepackage{multicol} % подключаю мультиколоночность в тексте
  12. \usepackage{graphicx} % пакет для вставки графики, я хз нахуя он нужен в этом документе
  13. \usepackage{listings} % пакет для вставки кода
  14. \usepackage{geometry} % меняю поля страницы
  15. %из параметров ниже понятно, какие части полей страницы меняются:
  16. \geometry{left=2.5cm}
  17. \geometry{right=1cm}
  18. \geometry{top=2cm}
  19. \geometry{bottom=2cm}
  20. \renewcommand{\baselinestretch}{1} % меняю ширину между строками на 1.5
  21. \righthyphenmin=2
  22. \begin{document}
  23. \begin{titlepage}
  24. \newpage
  25. \begin{center}
  26. {\large НАЦИОНАЛЬНЫЙ ИССЛЕДОВАТЕЛЬСКИЙ УНИВЕРСИТЕТ \\
  27. «ВЫСШАЯ ШКОЛА ЭКОНОМИКИ»                          \\
  28. Дисциплина: «Дискретная математика»}
  29. \vfill % заполняет длину страницы вертикально
  30. {\large Домашнее задание 1}\\
  31. \bigskip
  32. \underline{Исследование комбинационных схем}\\
  33. Вариант 123
  34. \vfill
  35. \begin{flushright}
  36. Выполнил: Фомин Константин,\\
  37. студент группы 155ПИ.\medskip \\
  38. Преподаватель: Авдошин С.М.,\\
  39. профессор департамента\\
  40. программной инженерии\\
  41. факультета компьютерных наук \\
  42. \end{flushright}
  43. \vfill
  44. Москва \number\year
  45. \end{center}
  46. \end{titlepage}
  47. \newpage
  48. \begin{center}
  49. №1.\\
  50. \end{center}
  51. \begin{flushleft}
  52. $29X_7 + 113X_6 +210X_5+64X_4 +154X_3+6X_2+247X_1+167X_0 = 113$ \\
  53. Переведём коэффициенты уравнения в двоичную систему счисления.
  54. $29_2 = 11101 , $113_2 = 1110001 , $210_2 = 11010010 , $64_2 = 1000000, $154_2 = 10011010,\\
  55. $6_2 = 110 , $247_2 = 11110111 , $167_2 = 10100111 , $113_2 = 1110001.\\
  56. Составим расширенную матрицу коэффициентов соответствующей системы линейных уравнений в GF(2) и решим систему. \\
  57. \bigskip
  58. \bigskip
  59. % определяю новую матрицу с чертой
  60. \newenvironment{amatrix}[1]{
  61. \left(\begin{array}{@{}*{#1}{c}|c@{}}
  62.     }{
  63. \end{array}\right)
  64.     }
  65. %
  66. \scriptsize{
  67. $   \begin{smallmatrix}
  68. \, & \,
  69.     \end{smallmatrix}
  70. $
  71. $\begin{amatrix}{8}
  72. %\fbox{0}
  73. 0&0&1&0&1&0&1&1&0\\
  74. 0&1&1&1&0&0&1&0&1\\
  75. 0&1&0&0&0&0&1&1&1\\
  76. 1&1&1&0&1&0&1&0&1\\
  77. 1&0&0&0&1&0&0&0&0\\
  78. 1&0&0&0&0&1&1&1&0\\
  79. 0&0&1&0&1&1&1&1&0\\
  80. 1&1&0&0&0&0&1&1&1\\
  81. \end{amatrix}$
  82. $   \begin{matrix}
  83.     (5)\oplus=(4)\\
  84.     (6)\oplus=(4)\\
  85.     (8)\oplus=(4)\\
  86.  
  87.     \sim
  88.     \end{matrix}
  89. $
  90. $
  91. \begin{amatrix}{8}
  92. %\fbox{1}
  93. 0&0&1&0&1&0&1&1&0\\
  94. 0&1&1&1&0&0&1&0&1\\
  95. 0&1&0&0&0&0&1&1&1\\
  96. 1&1&1&0&1&0&1&0&1\\
  97. 0&1&1&0&0&0&1&0&1\\
  98. 0&1&1&0&1&1&0&1&1\\
  99. 0&0&1&0&1&1&1&1&0\\
  100. 0&0&1&0&1&0&0&1&0
  101. \end{amatrix}$
  102. $   \begin{matrix}
  103.     (3)\oplus=(2)\\
  104.     (4)\oplus=(2)\\
  105.     (5)\oplus=(2)\\
  106.     (6)\oplus=(2)\\
  107.  
  108.     \sim
  109.     \end{matrix}
  110. $
  111. $   \begin{matrix}
  112.     \sim
  113.     \end{matrix}
  114. $
  115. $\begin{amatrix}{8}
  116. %\fbox{0}
  117. 0&0&1&0&1&0&1&1&0\\
  118. 0&1&1&1&0&0&1&0&1\\
  119. 0&0&1&1&0&0&0&1&0\\
  120. 1&0&0&1&1&0&0&0&0\\
  121. 0&0&0&1&0&0&0&0&0\\
  122. 0&0&0&1&1&1&1&1&0\\
  123. 0&0&1&0&1&1&1&1&0\\
  124. 0&0&1&0&1&0&0&1&0\\
  125. \end{amatrix}$
  126. $   \begin{matrix}
  127.     (2)\oplus=(1)\\
  128.     (3)\oplus=(1)\\
  129.     (7)\oplus=(1)\\
  130.     (8)\oplus=(1)\\
  131.     \sim
  132.     \end{matrix}
  133. $
  134. \\
  135. \bigskip
  136. $\begin{amatrix}{8}
  137. %\fbox{0}
  138. 0&0&1&0&1&0&1&1&0\\
  139. 0&1&0&1&1&0&0&1&1\\
  140. 0&0&0&1&1&0&1&0&0\\
  141. 1&0&0&1&1&0&0&0&0\\
  142. 0&0&0&1&0&0&0&0&0\\
  143. 0&0&0&1&1&1&1&1&0\\
  144. 0&0&0&0&0&1&0&0&0\\
  145. 0&0&0&0&0&0&1&0&0
  146. \end{amatrix}$
  147. $   \begin{matrix}
  148.     (2)\oplus=(3)\\
  149.     (4)\oplus=(3)\\
  150.     (5)\oplus=(3)\\
  151.     (6)\oplus=(3)\\
  152.     \sim
  153.     \end{matrix}
  154. $
  155. $   \begin{matrix}
  156.     \sim
  157.     \end{matrix}
  158. $
  159. $\begin{amatrix}{8}
  160. %\fbox{1}
  161. 0&0&1&0&1&0&1&1&0\\
  162. 0&1&0&0&0&0&1&1&1\\
  163. 0&0&0&1&1&0&1&0&0\\
  164. 1&0&0&0&0&0&1&0&0\\
  165. 0&0&0&0&1&0&1&0&0\\
  166. 0&0&0&0&0&1&0&1&0\\
  167. 0&0&0&0&0&1&0&0&0\\
  168. 0&0&0&0&0&0&1&0&0
  169. \end{amatrix}$
  170. $   \begin{matrix}
  171.     (1)\oplus=(5)\\
  172.     (3)\oplus=(5)\\
  173.     \sim
  174.     \end{matrix}
  175. $
  176. $\begin{amatrix}{8}
  177. %\fbox{1}
  178. 0&0&1&0&0&0&0&1&0\\
  179. 0&1&0&0&0&0&1&1&1\\
  180. 0&0&0&1&0&0&0&0&0\\
  181. 1&0&0&0&0&0&1&0&0\\
  182. 0&0&0&0&1&0&1&0&0\\
  183. 0&0&0&0&0&1&0&1&0\\
  184. 0&0&0&0&0&1&0&0&0\\
  185. 0&0&0&0&0&0&1&0&0
  186. \end{amatrix}$
  187. $   \begin{matrix}
  188.     (6)\oplus=(7)\\
  189.  
  190.     \sim
  191.     \end{matrix}
  192. $
  193. \\
  194. \bigskip
  195. $   \begin{matrix}
  196.     \sim
  197.     \end{matrix}
  198. $
  199. $\begin{amatrix}{8}
  200. %\fbox{1}  
  201. 0&0&1&0&0&0&0&1&0\\
  202. 0&1&0&0&0&0&1&1&1\\
  203. 0&0&0&1&0&0&0&0&0\\
  204. 1&0&0&0&0&0&1&0&0\\
  205. 0&0&0&0&1&0&1&0&0\\
  206. 0&0&0&0&0&1&0&1&0\\
  207. 0&0&0&0&0&0&0&1&0\\
  208. 0&0&0&0&0&0&1&0&0
  209. \end{amatrix}$
  210. $   \begin{matrix}
  211.     (2)\oplus=(8)\\
  212.     (4)\oplus=(8)\\
  213.     (5)\oplus=(8)\\
  214.     \sim
  215.     \end{matrix}
  216. $
  217. $\begin{amatrix}{8}
  218. %\fbox{1}
  219. 0&0&1&0&0&0&0&1&0\\
  220. 0&1&0&0&0&0&0&1&1\\
  221. 0&0&0&1&0&0&0&0&0\\
  222. 1&0&0&0&0&0&0&0&0\\
  223. 0&0&0&0&1&0&0&0&0\\
  224. 0&0&0&0&0&1&0&1&0\\
  225. 0&0&0&0&0&0&0&1&0\\
  226. 0&0&0&0&0&0&1&0&0
  227. \end{amatrix}$
  228. $   \begin{matrix}
  229.     (1)\oplus=(7)\\
  230.     (2)\oplus=(7)\\
  231.     (6)\oplus=(7)\\
  232.  
  233.     \sim
  234.     \end{matrix}
  235.  
  236. $
  237. $\begin{amatrix}{8}
  238. 0&0&1&0&0&0&0&0&0\\
  239. 0&1&0&0&0&0&0&0&1\\
  240. 0&0&0&1&0&0&0&0&0\\
  241. 1&0&0&0&0&0&0&0&0\\
  242. 0&0&0&0&1&0&0&0&0\\
  243. 0&0&0&0&0&1&0&0&0\\
  244. 0&0&0&0&0&0&0&1&0\\
  245. 0&0&0&0&0&0&1&0&0
  246. \end{amatrix}$
  247. \bigskip
  248. \begin{flushleft}
  249. В описаниях преобразований строки обозначены как (1), (2), ..., (8), а выражение $ (i)\oplus{=(j)} $ обозначает «заменить все числа в строке ($i$) на их сумму по модулю $2$ с соответствующими числами строки ($j$)». \\
  250. Получаем решение: $X_7$ = 0, $X_6$ = 1, $X_5$ = 0, $X_4$ = 0, $X_3$ = 0, $X_2$ = 0, $X_1$ = 0, $X_0$ = 0.
  251. \end{flushleft}
  252. \newpage
  253. \begin{flushleft}
  254. Составим таблицу истинности функции F. \\
  255. \bigskip
  256. \begin{tabular}{|c|c|c|c|c|c|c|c|c|}
  257. \hline
  258. A &0 &0 &0 &1 &1 &1 &1 &0 \\
  259. \hline
  260. B &0 &0 &1 &1 &0 &0 &1 &1 \\
  261. \hline
  262. C &0 &1 &0 &1 &0 &1 &0 &1 \\
  263. \hline
  264. F &0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\
  265. \hline
  266. \end{tabular}
  267. \\
  268. \bigskip
  269. Десятичный номер функции F равен $2^6 = 64$.
  270. \end{flushleft}
  271. \begin{multicols}{2}
  272. \bigskip
  273. \centering
  274. №4.\\
  275. \bigskip
  276. \begin{tabular}{|c|c|c|c|c|c|c|c|c|}
  277. \hline
  278. A &0 &0 &0 &0 &1 &1 &1 &1 \\
  279. \hline
  280. B &0 &0 &1 &1 &0 &0 &1 &1 \\
  281. \hline
  282. C &0 &1 &0 &1 &0 &1 &0 &1 \\
  283. \hline
  284. F &0 & 1 & 0 & 0 & 0 &0&0&0 \\
  285. \hline
  286. $F_A^{\prime}$ &0&1&0&0&0&1&0&0\\
  287. \hline
  288. $F_B^{\prime}$ &0&1&0&1&0&0&0&0\\
  289. \hline
  290. $F_C^{\prime}$ & 1&1&0&0&0&0&0&0\\
  291. \hline
  292. $F_{A,B}^{\prime\prime}$ &0&1&0&1&0&1&0&1\\
  293. \hline
  294. $F_{B,C}^{\prime\prime}$ &1&1&1&1&0&0&0&0\\
  295. \hline
  296. $F_{A,C}^{\prime\prime}$ &1&1&0&0&1&1&0&0\\
  297. \hline
  298. $F_{A,B,C}^{\prime\prime\prime}$ &1&1&1&1&1&1&1&1\\
  299. \hline
  300. \end{tabular}\\
  301. \bigskip
  302. №6.\\
  303. \bigskip
  304. \begin{tabular}{|c|c|c|c|c|c|c|c|c|}
  305. \hline
  306. A &0 &0 &0 &0 &1 &1 &1 &1 \\
  307. \hline
  308. B &0 &0 &1 &1 &0 &0 &1 &1 \\
  309. \hline
  310. C &0 &1 &0 &1 &0 &1 &0 &1 \\
  311. \hline
  312. F &0 & 1 & 0 & 0 & 0 &0&0&0 \\
  313. \hline
  314. $F_{(A,B)}^{\prime}$ & 0&1&0&0&0&0&0&1\\
  315. \hline
  316. $F_{(B,C)}^{\prime}$ & 0&1&1&0&0&0&0&0\\
  317. \hline
  318. $F_{(A,C)}^{\prime}$ & 0&1&0&0&1&0&0&0\\
  319. \hline
  320. \end{tabular}
  321. \\
  322. \bigskip
  323. №8.\\
  324. \bigskip
  325. \begin{tabular}{|c|c|c|c|c|c|c|c|c|}
  326. \hline
  327. A &0 &0 &0 &0 &1 &1 &1 &1 \\
  328. \hline
  329. B &0 &0 &1 &1 &0 &0 &1 &1 \\
  330. \hline
  331. C &0 &1 &0 &1 &0 &1 &0 &1 \\
  332. \hline
  333. F &0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\
  334. \hline
  335. $F_{(A,B,C)}^{\prime}$ & 0&1&0&0&0&0&1&0\\
  336. \hline
  337. \end{tabular}\\
  338. \bigskip
  339. \columnbreak
  340. №5. \\
  341. % РЕШЕНО
  342. \bigskip
  343. $ F_A^{\prime} = (C\not\Rightarrow B $) \\
  344. $ F_B^{\prime} = (C\not\Rightarrow A $) \\
  345. $ F_C^{\prime} = (B \downarrow A $) \\
  346. $ F_{A,B}^{\prime\prime} =  C$ \\
  347. $ F_{B,C}^{\prime\prime} =  \overline{A}$ \\
  348. $ F_{A,C}^{\prime\prime} =  \overline{B}$ \\
  349. $ F_{A,B,C}^{\prime\prime\prime} = 1 $ \\
  350. \bigskip
  351. \bigskip
  352. №7. \\
  353. % Решено
  354. \bigskip
  355. $ F_{(A,B)}^{\prime} =  (C \not\Rightarrow (B \oplus A)$) \\
  356. $ F_{(B,C)}^{\prime} =  ((C \oplus B) \not\Rightarrow A$) \\
  357. $ F_{(A,C)}^{\prime} = ((C \oplus A) \not\Rightarrow B$) \\
  358. \bigskip
  359. \bigskip
  360. №9. \\
  361. % Решено
  362. \bigskip
  363. $ F_{(A,B,C)}^{\prime} = (( C\oplus A) \not\Rightarrow (B \oplus A))$  \\
  364. \end{multicols}
  365. \newpage
  366. \begin{center}
  367. №10.
  368. \end{center}
  369. \begin{flushleft}
  370. $ F(A,B,C)  = C \oplus BC \oplus AC \oplus ABC$
  371. \end{flushleft}
  372. \bigskip
  373. \begin{center}
  374. №11.
  375. \end{center}
  376. $ (0,0,0): F(A,B,C) = C \oplus BC \oplus AC \oplus ABC$   \\
  377. $ (0,0,1): F(A,B,C) = 1 \oplus A \oplus B \oplus (C\oplus 1)\oplus AB \oplus B(C\oplus 1) \oplus A(C \oplus 1) \oplus AB(C\oplus1) $ \\
  378. $ (0,1,0): F(A,B,C) = (B \oplus 1)C \oplus AC(B \oplus 1)$ \\
  379. $ (0,1,1): F(A,B,C) = (B \oplus 1) \oplus A(B \oplus 1) \oplus (B \oplus 1)(C \oplus 1) \oplus A(B \oplus1)(C \oplus 1) $ \\
  380. $ (1,0,0): F(A,B,C) = (A \oplus 1)C \oplus (A \oplus1)BC $ \\
  381. $ (1,0,1): F(A,B,C) = (A \oplus 1) \oplus (A \oplus 1)B \oplus (A \oplus 1)( C \oplus 1) \oplus B(A \oplus 1)(С \oplus 1) $ \\
  382. $ (1,1,0): F(A,B,C) = (A \oplus 1)(B \oplus 1)C$\\
  383. $ (1,1,1): F(A,B,C) = (A \oplus 1)(B \oplus 1) \oplus (A \oplus 1)(B \oplus1)(C \oplus 1) $ \\
  384. \begin{center}
  385. №12.  
  386. % Решено
  387. \end{center}
  388. \begin{flushleft}
  389. $ F(A,B,C) = 0 \equiv (A + B) \equiv (A + B + C) $ \\
  390. \end{flushleft}
  391. \begin{center}
  392. №13.  
  393. % Решено
  394. \end{center}
  395. \begin{flushleft}
  396. $ (0,0,0): F(A,B,C) = 0 \equiv ( C \equiv 0) \equiv ((B \equiv 0) + (C \equiv 0)) \equiv ((A \equiv 0) + (C \equiv 0)) \equiv ((A \equiv 0) + (B \equiv 0) + (C \equiv 0))$ \\
  397. $ (0,0,1): F(A,B,C) = (A \equiv 0) \equiv (B \equiv 0) \equiv C \equiv ((A \equiv 0) + (B \equiv 0)) \equiv ((B \equiv 0) + C) \equiv ((A \equiv 0) + C) \equiv ((A \equiv 0) + (B \equiv0) +C)$ \\
  398. $ (0,1,0): F(A,B,C) = 0 \equiv (B + (C \equiv 0)) \equiv ((A \equiv 0) + B+ (C \equiv 0))$ \\
  399. $ (0,1,1): F(A,B,C) = 0 \equiv B \equiv ((A \equiv 0)+B)\equiv (B + C)\equiv((A \equiv 0)+ B + C)$ \\
  400. $ (1,0,0): F(A,B,C) = 0 \equiv(A+( C \equiv 0)) \equiv(A + (B \equiv 0) +(C \equiv 0)) $ \\
  401. $ (1,0,1): F(A,B,C) =0 \equiv A \equiv(A +(B \equiv 0)) \equiv (A + C) \equiv (A + (B \equiv 0) +C)$ \\
  402. $ (1,1,0): F(A,B,C) = 0 \equiv (A + B + (C \equiv 0))$ \\
  403. $ (1,1,1): F(A,B,C) = 0 \equiv ( A + B) \equiv (A + B + C)$ \\
  404. \end{flushleft}
  405. \begin{center}
  406. №14.  
  407. % Решено
  408. \end{center}
  409. \begin{flushleft}
  410. $F \in{T_0}, \text{т.к.}\; F(0,0,0)=0 $ \\
  411. $F \notin{T_1},\text{т.к.}\; F(1,1,1)=0 $ \\
  412. $F \notin{T_*}, \text{т.к.}\; F(1,1,1)=F(0,0,0) = 0 $ \\
  413. $F \notin{T_\leq}, \text{т.к.}\; F(0,0,1)=1>F(0,1,0)=0 $ \\
  414. $F \notin{T_L}, \text{т.к.}\; F(0,0,0)= C \oplus BC \oplus AC \oplus ABC $ \\
  415. \end{flushleft}
  416. \begin{center}
  417. №15.  
  418. \end{center}
  419. $0=F(A,A,A)$\\
  420. $(A\& B) = F(F(A,A,B),0,B)$\\
  421. $(A \not\Rightarrow B) = F(B,B,A)$\\
  422. $ A = F(F(A,A,A),F(A,A,A),A)$\\
  423. $(A\not\Leftarrow B) = F(A,A,B)$\\
  424. $ B = F(F(A,A,A),F(A,A,A),B)$\\
  425. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement