99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

COMP30026代做、C/C++設計程序代寫
COMP30026代做、C/C++設計程序代寫

時間:2024-08-30  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Assignment 1
COMP30026 Models of Computation
School of Computing and Information Systems
Due: Friday 30 August at 8:00pm
Aims
To improve your understanding of propositional logic and first-order predicate
logic, including their use in mechanised reasoning; to develop your skills in
analysis and formal reasoning about complex concepts, and to practise writing
down formal arguments with clarity.
Marking
Each question is worth 2 marks, for a total of 12. We aim to ensure that
anyone with a basic comprehension of the subject matter receives a passing
mark. Getting full marks is intended to be considerably more difficult; the
harder questions provide an opportunity for students to distinguish themselves.
Your answers will be marked on correctness and clarity. Do not leave us
guessing! It is better to be clear and wrong; vague answers will attract few
if any marks. This also means you must show your working in mechanical
questions!
Finally, make sure your writing is legible! We cannot mark what we cannot
read. (Keep in mind that the exam will be on paper, so this will be even more
important later!)
Academic Integrity
In this assignment, individual work is called for. By submitting work for
assessment you declare that:
1. You understand the University  s policy on academic integrity.
2. The work submitted is your original work.
3. You have not been unduly assisted by any other person or third party.
4. You have not unduly assisted anyone else.
5. You have not used any unauthorized materials, including but not limited
to AI and translation software.
1
However, if you get stuck, you can use the discussion board to ask any ques-
tions you have. If your question reveals anything about your approach or work-
ing, please make sure that it is set to   private  .
You may only discuss the assignment in basic terms with your peers (e.g.
clarifying what the question is asking, or recommending useful exercises). You
may not directly help others in solving these problems, even by suggesting
strategies.
Soliciting or accepting further help from non-staff is cheating and will lead
to disciplinary action.
Q1 Propositional Logic: Island Puzzle
You come across three inhabitants of the Island of Knights and Knaves. Now, a
mimic has eaten one of them and stolen their appearance, as well as their status
as a knight or knave. (And is thus bound by the same rules. Remember that
knights always tell the truth, and knaves always lie!)
Each makes a statement:
1. A says:   C is either the mimic or a knight, or both.  
2. B says:   It is not the case that both A is the mimic and C is a knave.  
3. C says:   If B is a knight, then the mimic is a knave.  
Task A
Translate the information above into propositional formulas. Give an appropri-
ate interpretation of all propositional letters used. Use the same interpretation
throughout the question; do not give multiple interpretations.
Task B
Determine which of , , and is the mimic, and prove that it must be the
case using an informal argument.
Some advice: A good answer should not be much longer than about 250
words. But do not worry about the length of your first draft! Instead focus on
finding a proof in the first place. Once you have that, it is much easier to find a
shorter proof. Also, remember that clarity is key: write in complete sentences
with good grammar, but do not include irrelevant information or repeat yourself
unnecessarily.
Q2 Propositional Logic:
Validity and Satisfiability
For each of the following propositional formulas, determine whether it is valid,
unsatisfiable, or contingent. If it is valid or unsatisfiable, prove it by drawing
an appropriate resolution refutation. If it is contingent, demonstrate this with
two appropriate truth assignments.
1. ?    (    ?)
2
2. (    (    (    )))    (?    ?(?    ?))
3. ?((    )    )    ( ? )    (    ?)
4. ( ? )    ((    ) ? ( ? ))
Hint: If you are unsure, you can use a truth table to help you decide!
Q3 Predicate Logic: Translation and Seman-
tics
Task A
Translate the following English sentences into formulas of predicate logic. Give
an appropriate interpretation of any non-logical symbols used. Use the same
interpretation throughout this question; do not give multiple interpretations.
1. Iron is heavier than oxygen.
2. All actinides are radioactive.
3. Some, but not all, lanthanides are radioactive.
4. Actinides are heavier than lanthanides.
5. Both lanthanides and actinides are heavier than iron and oxygen.
6. At least three isotopes of lanthanides are radioactive, but the only lan-
thanide without any non-radioactive isotopes is promethium.
Task B
By arguing from the semantics of predicate logic, prove that the universe of
every model of following formula has at least 3 distinct elements. (Resolution
refutations will receive 0 marks.)
??((, )    ?(, ))    ??((, ))
Q4 Predicate Logic: Red-Black Trees
The use of function symbols in our notation for predicate logic allows us to
create a simple representation of binary trees. Namely, let the constant symbol
represent the root node of the tree, and the unary functions and represent
the left and right children of a node. The idea is that () is the left child of the
root node, (()) is the right child of the left child of the root node, and so on.
With this representation defined, we can now prove statements about trees.
A red-black tree is a special type of binary tree that can be searched faster,
in which each node is assigned a colour, either red or black. Let the predicates
and denote whether a node is red or black respectively. A red-black tree is
faster to search because it must satisfy some constraints, two of which are:
3
1. Every node is red or black, but not both:
?((()    ?())    (()    ?())) (1)
2. A red node does not have a red child:
?(()    (?(())    ?(()))) (2)
Task
Use resolution to prove that these two conditions entail that a tree consisting
of a non-black root with a red left child is not a red-black tree.
Q5 Informal Proof: Palindromes
Assume the following definitions:
1. A string is a finite sequence of symbols.
2. Given a symbol , we write the string consisting of just also as .
3. Given strings and , we write their concatenation as .
4. Given a collection of symbols 1,   , , we have the following:
(a) The expression 1   stands for the string of symbols whose th
symbol is equal to for all integers from 1 to .
(b) The reverse of the empty string is the empty string.
(c) The reverse of a nonempty string 1   of length is the string
1   where = ?+1 for all positive integers    .
(d) The expression   1 stands for the reverse of 1  .
5. A string is a palindrome if and only if it is equal to its reverse.
Task
The proof attempt below has problems. In particular, it does not carefully
argue from these definitions. Identify and describe the problems with the proof.
Then, give a corrected proof.
Theorem. Let be a palindrome. Then is also a palindrome.
Proof (attempt). We have = 1   for some symbols 1,   , where is
the length of . Since is a palindrome, it is by definition equal to itself under
reversal, so =   1 and = ?+1 for all positive integers    .
Therefore = 1    1, and hence there exist symbols 1,   , 2
such that = 1  2. Since the reverse of 1    1 is itself, it follows
that is a palindrome, as desired.
4
d f g h ie
b
a
c
Figure 1: Diagram of our 9-segment display. Colour key: horizontal segments
are blue, vertical segments are green, and diagonal segments are orange.
Q6 Propositional Logic: Logic on Display
One common practical application of propositional logic is in representing logic
circuits. Consider a 9-segment LED display with the segments labelled a through
i, like the one shown on Figure 1. To display the letter   E  , for example, you
would turn on LEDs , , , and , and turn the rest off.
Arrays of similar displays are commonly used to show numbers on digital
clocks, dishwashers, and other devices. Each LED segment can be turned on or
off, but in most applications, only a small number of on/off combinations are of
interest (e.g. displaying a digit in the range 0 C9 only uses 10 combinations). In
that case, the display can be controlled through a small number of input wires.
For this question, we are interested in creating a display for eight symbols
from the proto-science of alchemy. Since we only want eight different symbols
(see Figure 2), we only need three input wires: , , and .
Figure 2: Table of symbols, their encodings in terms of , and , and the
corresponding on/off state of the segments  C.
So, for example, is represented by = = = 0, and so when all three
wires are unpowered, we should turn on segments , and ? and turn off the
other segments. Similarly, is represented by = = 0 and = 1, so when
wires and are off and the wire is on, we should turn on , and , and
turn off the other segments.
5
Note that each of the display segments  C can be considered a propositional
function of the variables , , and . For example, segment e is on when the
input is one of 101, 110, or 111, and is off otherwise. That is, we can capture
its behavior as the following propositional formula:
(    ?    )    (       ?)    (       ).
The logic display must be implemented with logic circuitry. Here we assume
that only three types of logic gates are available:
1. An and-gate takes two inputs and produces, as output, the conjunction
(  ) of the inputs.
2. An or-gate implements disjunction (  ).
3. An inverter takes a single input and negates (?) it.
Task
Design a logic circuit for each of  C using as few gates as possible. Your answer
does not need to be optimal1 to receive full marks, but it must improve upon
the trivial answer. (Incorrect answers will receive 0 marks.)
We can specify the circuit by writing down the Boolean equations for each
of the outputs  C. For example, from what we just saw, we can define
= (    ?    )    (       ?)    (       )
and thus implement using 10 gates. But the formula (    ?  )    (   )
is equivalent, so we can in fact implement using 5 gates.
Moreover, the nine functions might be able to share some circuitry. For
example, if we have a sub-circuit defined by = ?    , then we can define
=    (    ?    ?), and also possibly reuse in other definitions. That is,
we can share sub-circuits among multiple functions. This can allow us to reduce
the total number of gates. You can define as many   helper   sub-circuits as you
please, to create the smallest possible solution.
Submission
Go to   Assignment 1 (Q6)   on Gradescope, and submit a text file named q6.txt
consisting of one line per definition. This file will be tested automatically, so it
is important that you follow the syntax exactly.
We write ? as - and    as +. We write    as ., or, simpler, we just leave it
out, so that concatenation of expressions denotes their conjunction. Here is an
example set of equations (for a different problem):
# An example of a set of equations in the correct format:
a = -Q R + Q -R + P -Q -R
b = u + P (Q + R)
c = P + -(Q R)
d = u + P a
u = -P -Q
# u is an auxiliary function introduced to simplify b and d
1Indeed, computing an optimal solution to this problem is extremely difficult!
6
Empty lines, and lines that start with   #  , are ignored. Input variables are
in upper case. Negation binds tighter than conjunction, which in turn binds
tighter than disjunction. So the equation for says that = (?    )    (   
?)    (    ?    ?). Note the use of a helper function , allowing and
to share some circuitry. Also note that we do not allow any feedback loops
in the circuit. In the example above, depends on , so is not allowed to
depend, directly or indirectly, on (and indeed it does not).

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





 

掃一掃在手機打開當前頁
  • 上一篇:MAST30027代做、Java/C++設計程序代寫
  • 下一篇:ECOS3010 代做、代寫 c/c++,java 語言程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                久久艹免费视频| 99久久一区二区| 在线观看日韩精品视频| 99久久精品免费看国产交换| 天天干天天干天天操| av电影在线不卡| 极品久久久久久久| 一级做a爱片久久毛片| 国产乱淫a∨片免费观看| 欧美精品xxxxx| 亚洲精品77777| 国产伦精品一区二区三区妓女下载| 中文字幕日韩三级| 国产精品一区二区人妻喷水 | 在线视频 日韩| 国产美女www爽爽爽| 99久久精品无免国产免费 | 国产精品2020| 香蕉网在线视频| 精品久久久中文字幕人妻| 国产aⅴ一区二区三区| 无码人妻精品一区二| 国产一区二区三区成人| 中文字幕22页| 亚洲aⅴ乱码精品成人区| 天天操天天爱天天爽| 日韩毛片在线播放| 国产成人一区二区在线观看 | 最新中文字幕免费| 久久久久久国产精品日本 | 性刺激的欧美三级视频| 三级网站免费观看| 国产小视频一区| 在线免费观看亚洲视频| 永久看片925tv| 在线观看国产精品视频| 一区二区三区免费在线视频 | 蜜桃av.com| 极品粉嫩美女露脸啪啪| 少妇精品一区二区| 天天爽天天爽夜夜爽| 69夜色精品国产69乱| 国产成人精品免费看视频| www.色就是色| 亚洲黄色小说在线观看| 亚洲性猛交xxxx乱大交| 日韩一区二区不卡视频| 色一情一乱一区二区三区| 天天干天天摸天天操| 中文字幕+乱码+中文| 亚洲一区二区三区网站| 成人午夜视频精品一区| 中文字幕第三页| 91精品国产高潮对白| 中文字幕一区二区三区人妻在线视频| 中文字幕一区二区人妻在线不卡| 亚洲国产欧美另类| 99热一区二区| 国产又黄又粗又猛又爽的| 久久久精品高清| 丝袜制服一区二区三区| 中国一级免费毛片| 992kp免费看片| 精品国产免费久久久久久婷婷| 可以直接看的无码av| 特黄aaaaaaaaa真人毛片| 中文字幕国产在线观看| 成人小视频免费看| 精品在线视频免费| 黄色性视频网站| 国产视频三区四区| 嫩草影院国产精品| 久久久久久久久久久影院| 国产字幕在线观看| 青青操在线播放| 人妻人人澡人人添人人爽| 又黄又色的网站| www久久久com| 久久久久久久蜜桃| 亚欧洲精品视频| www.成人黄色| 欧美aaa级片| 在线观看国产中文字幕| 国产成人在线观看网站| 欧美三级视频网站| 日本黄色片视频| 中文字字幕在线中文乱码| 国产福利久久久| 欧美视频xxx| 亚洲精品一区二区三区不卡| 国产精品午夜影院| 日韩福利在线视频| 999久久久久| 欧美久久久久久久久久久久| 亚洲欧美一区二区三区不卡| 911av视频| 成人免费视频国产免费观看| 日韩一区二区三区四区视频| 免费国产黄色片| 久久精品无码专区| 国产美女福利视频| 国产精品1000| 国产一级片免费在线观看| 人妻丰满熟妇av无码区| 91香蕉视频在线播放| 欧美日韩黄色网| ass极品水嫩小美女ass| 情侣偷拍对白清晰饥渴难耐| av亚洲天堂网| 色偷偷中文字幕| 国产传媒国产传媒| 天天综合网久久| 国产肉体xxxx裸体784大胆| 亚州精品一二三区| 精品熟女一区二区三区| 艳妇乳肉豪妇荡乳av无码福利| 国产精品国产精品国产专区| 无码人妻av一区二区三区波多野| 国产绿帽一区二区三区| 中文区中文字幕免费看| 久久久精品毛片| av高清一区二区| 无码人妻aⅴ一区二区三区有奶水| 国产美女免费无遮挡| 在线免费观看国产精品| 欧美成人午夜精品免费| 国产不卡一二三| 在线观看亚洲一区二区| 久久久国产一级片| xxxxxx国产| 一区二区三区黄| 欧洲猛交xxxx乱大交3| 国产夫妻自拍av| 亚洲人妻一区二区三区| 日韩美女黄色片| 久久国产柳州莫菁门| www.555国产精品免费| 中文字幕免费观看| 日韩av在线看免费观看| 37p粉嫩大胆色噜噜噜| 日韩中文字幕高清| 黄色片在线免费| 变态另类丨国产精品| 亚洲国产精品一区二区久久hs| 日本女人性生活视频| 激情五月婷婷网| www.中文字幕av| 亚洲视频在线不卡| 亚洲 日本 欧美 中文幕| 欧美三级理论片| 久久久久99精品成人片我成大片| 国产成人av免费看| 88av在线视频| 亚洲精品自拍网| 永久免费av无码网站性色av| 日本女人性视频| 久久这里只有精品9| 国产视频1区2区3区| 国产chinasex对白videos麻豆| 亚洲午夜久久久久久久久红桃| 性色av蜜臀av| 日本在线视频免费| 欧美成人国产精品高潮| 久久人人爽人人爽人人| 国产在线观看免费视频今夜| 91精品中文字幕| av丝袜天堂网| 人妻无码一区二区三区久久99| 亚洲国产日韩欧美在线观看| 国产欧美久久久| 午夜精品久久久久久久久久久久久蜜桃| 99国产精品免费视频| 中文字幕乱码一区二区| 香蕉视频黄色在线观看| 天堂免费在线视频| 少妇按摩一区二区三区| 日本黄色小视频在线观看| 欧美视频在线观看一区二区三区| 美女喷白浆视频| 欧美成人乱码一二三四区免费| 久青草视频在线观看| 蜜桃av噜噜一区二区三区麻豆| 蜜臀尤物一区二区三区直播 | 五月天中文字幕在线| 深夜福利影院在线观看| 少妇精品一区二区| 性猛交xxxx| 中文字幕高清视频| 亚洲精品免费一区亚洲精品免费精品一区 | 亚洲AV无码精品自拍| 五月天婷婷在线观看| 亚洲成年人av| 亚洲精品男人的天堂| 91成人在线免费| 波多野结衣不卡视频| 国产一二三四视频| 久久久久精彩视频| 殴美一级黄色片| 无码人妻av一区二区三区波多野 | 国产大学生av|