日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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

時間:2024-08-29  來源:合肥網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.  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






 

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

    合肥圖文信息
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
  • 短信驗證碼 豆包 幣安下載 目錄網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        久久全球大尺度高清视频| 麻豆精品网站| 欧美日韩国产不卡在线看| 国内精品久久久久影院优| 国产亚洲福利一区| 亚洲在线观看| 一区二区三区高清不卡| 激情91久久| 中文国产成人精品| 亚洲欧美日韩第一区| 国产一区视频观看| 午夜精品久久久久久久久久久久久| 欧美日韩一区二区视频在线观看| 亚洲视频一区在线观看| 亚洲国产美国国产综合一区二区| 亚洲欧美制服另类日韩| 久久免费偷拍视频| 欧美国产亚洲另类动漫| 亚洲国产日韩欧美一区二区三区| 韩国av一区二区三区四区| 久久蜜桃av一区精品变态类天堂| 在线亚洲伦理| 久久女同精品一区二区| 在线免费高清一区二区三区| 一区在线影院| 国产精品嫩草99av在线| 性xx色xx综合久久久xx| 亚洲欧美另类综合偷拍| 亚洲欧洲精品一区二区三区不卡| 亚洲欧美日韩精品一区二区| 一本久久a久久精品亚洲| 欧美尤物巨大精品爽| 狠狠色综合网站久久久久久久| 国产一区二区三区久久久久久久久| 亚洲一区二区免费视频| 亚洲三级视频| 国产精品九色蝌蚪自拍| 亚洲自拍偷拍色片视频| 国产精品亚洲аv天堂网| 欧美在线看片a免费观看| 亚洲欧美激情四射在线日| 亚洲韩国青草视频| 欧美在线播放视频| 韩国福利一区| 亚洲一区在线视频| 久久九九全国免费精品观看| 亚洲片在线观看| 在线成人免费视频| 亚洲少妇最新在线视频| 欧美日韩国产综合视频在线| 精品粉嫩aⅴ一区二区三区四区| 蜜臀99久久精品久久久久久软件| 亚洲国产精品一区二区第一页| 欧美国产在线电影| 日韩视频第一页| 老妇喷水一区二区三区| 黄色在线一区| 亚洲欧美一区二区视频| 国产欧美日韩综合一区在线播放| 亚洲一区二区三区在线观看视频| 亚洲成色www8888| 欧美色综合天天久久综合精品| 久久不射电影网| 亚洲欧美影院| 久久亚洲一区二区三区四区| 欧美激情久久久| 欧美激情亚洲国产| 久久久久国产精品麻豆ai换脸| 性亚洲最疯狂xxxx高清| 欧美日韩精品综合在线| 欧美日韩在线免费| 免费91麻豆精品国产自产在线观看| 亚洲男人的天堂在线| 亚洲破处大片| 亚洲欧美成人一区二区三区| 国产综合激情| 国产精品久久久久秋霞鲁丝| 亚洲一区免费| 国产精品视频免费观看www| 亚洲婷婷综合色高清在线| 亚洲精选一区| 这里只有视频精品| 欧美在线三级| 欧美日韩视频一区二区| 亚洲欧美国产另类| 国产日韩在线视频| 亚洲国产专区| 欧美一区在线直播| 一区二区视频免费完整版观看| 中文一区在线| 日韩午夜激情| 欧美一区二区大片| 亚洲一级在线| 欧美精品免费在线观看| 免费视频一区二区三区在线观看| 欧美精品成人一区二区在线观看| 亚洲免费在线观看视频| 国产日韩高清一区二区三区在线| 欧美午夜在线视频| 欧美大片免费观看在线观看网站推荐| 亚洲国产精品久久久久| 国产模特精品视频久久久久| 国产精品国产三级国产aⅴ9色| 日韩一二三区视频| 久久久久久婷| 亚洲七七久久综合桃花剧情介绍| 欧美日韩精品免费在线观看视频| 欧美日韩精品免费观看视一区二区| 久久综合电影一区| 亚洲一区二区三区四区五区黄| 欧美日韩色一区| 尤物精品国产第一福利三区| 亚洲欧美视频在线观看视频| 久久久久国产一区二区三区| 久久久女女女女999久久| 永久域名在线精品| 在线精品高清中文字幕| 欧美高清视频免费观看| 欧美成人网在线| 久久色在线观看| 国产一区在线观看视频| 欧美在线免费观看| 久久婷婷久久| 欧美日韩国产一区二区三区| 在线不卡中文字幕播放| 亚洲视频第一页| 欧美日韩久久| 一本色道久久| 欧美高清视频一区| 欧美日韩亚洲一区二区三区在线观看| 亚洲专区在线| 国产亚洲一区二区三区在线观看| 亚洲第一精品电影| 伊人久久男人天堂| 欧美吻胸吃奶大尺度电影| 欧美日本一区二区高清播放视频| 国产一区二区三区久久久久久久久| 一本色道精品久久一区二区三区| 亚洲调教视频在线观看| 亚洲日韩欧美视频一区| 欧美性猛交一区二区三区精品| 国产麻豆一精品一av一免费| 玉米视频成人免费看| 亚洲国产婷婷综合在线精品| 亚洲电影免费| 国产一区二区三区高清在线观看| 中日韩美女免费视频网址在线观看| 欧美日本乱大交xxxxx| 一本色道精品久久一区二区三区| 欧美日韩一区自拍| 香蕉久久精品日日躁夜夜躁| 亚洲欧美中文另类| 久久精品一二三区| 国产精品日韩一区二区| 一本色道久久综合亚洲精品小说| 亚洲精品色图| 亚洲欧美制服中文字幕| 激情亚洲一区二区三区四区| 久久精品二区| 欧美性做爰毛片| 欧美中文字幕不卡| 久久精品免费看| 久久久精品免费视频| 国产精品久久久久久久久婷婷|