国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代寫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++設計程序代寫
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    三区精品视频| 日本国产欧美一区二区三区| 亚洲欧美日韩在线综合| 国产老熟妇精品观看| 国产精品国模大尺度私拍| 欧美激情国产精品日韩| 久久精品视频99| 欧美 日韩 亚洲 一区| 国产精品免费一区豆花| 免费久久99精品国产自| 国产精品久久久久久久一区探花 | 久久激情视频久久| 欧美一区观看| 国产精品久久久久免费a∨大胸| 免费观看亚洲视频| 麻豆国产va免费精品高清在线| 欧美精品一区二区三区四区五区 | 日本欧美视频在线观看| 91国产精品电影| 亚洲精品高清视频| 不卡一卡2卡3卡4卡精品在| 亚洲精品一区二区三区蜜桃久| 91精品久久久久久久久中文字幕| 亚洲 日韩 国产第一区| 国产成人极品视频| 激情视频一区二区| 欧美激情亚洲自拍| 国产日韩在线视频| 中文字幕一区二区三区乱码| 国产精成人品localhost| 日本一区二区在线| 91九色在线观看| 日日摸天天爽天天爽视频| 久久免费视频在线观看| 人妻无码视频一区二区三区| 国产精品免费久久久久久| 欧美日韩国产一二| 久久99热精品这里久久精品| 91久久久亚洲精品| 青青视频免费在线| 欧美大成色www永久网站婷| 国产伦精品一区二区三区免费视频 | 久久精品99无色码中文字幕 | 久久好看免费视频| 国产精品一区久久久| 亚洲精品国产精品久久| 日韩在线视频播放| 国产情侣第一页| 日韩中文字幕在线不卡| 国产精品入口夜色视频大尺度| 国产青青在线视频| 欧美一区二区三区精品电影| 国产精品国模大尺度私拍| 91高潮精品免费porn| 欧美中文字幕在线播放| 欧美激情视频在线| 久久99精品久久久久久青青日本 | 久久久精彩视频| 男人的天堂成人| 亚洲欧美日韩综合一区| 国产精品视频免费一区二区三区| 99爱精品视频| 精品少妇人欧美激情在线观看 | 高清一区二区三区四区五区| 日韩精品在在线一区二区中文| 久久99精品久久久久久噜噜| 久久久久久久久久福利| www久久99| 麻豆久久久av免费| 亚洲一区二区自拍| 日韩亚洲欧美中文高清在线| 精品日韩美女| 日韩激情视频一区二区| 亚洲影视中文字幕| 国产精品免费入口| 国产a级片免费观看| 国产色视频一区| 欧美亚洲丝袜| 午夜精品久久久久久久男人的天堂| 国产精品高清网站| 久久久久久尹人网香蕉| 97精品视频在线播放| 国产亚洲欧美一区二区| 欧美激情第一页在线观看| 日韩av免费在线看| 欧美日本高清一区| 色婷婷综合久久久久| av资源站久久亚洲| 国产一区福利视频| 欧美国产视频在线观看| 人人澡人人澡人人看欧美| 久久久久久av| 国产精品久久一区主播| 日韩中文字幕精品| 国产va亚洲va在线va| 国产一区精品视频| 黄色一级大片免费| 人体精品一二三区| 日本精品免费观看| 色噜噜狠狠一区二区三区| 亚洲在线www| 亚洲五月六月| 国产精品啪视频| 久久av一区二区| 久久这里精品国产99丫e6| 97精品欧美一区二区三区| 国产呦系列欧美呦日韩呦| 欧美亚洲在线播放| 日本天堂免费a| 中文精品一区二区三区| 欧美激情第三页| 色综合久久天天综线观看| 国产精品吹潮在线观看| 国产精品乱码久久久久| 国产精品极品美女粉嫩高清在线| 国产精品精品视频| 精品久久中出| 国产aaa一级片| 久久99久国产精品黄毛片入口 | 日韩精品不卡| 亚洲av首页在线| 亚洲欧美一区二区原创| 午夜精品一区二区三区在线播放| 亚洲精品欧美精品| 欧美一区二区三区四区夜夜大片 | 国产一级不卡毛片| 国产女同一区二区| 国产九区一区在线| 国产免费黄色一级片| 国产伦理久久久| 蜜桃日韩视频| 国产精品一区二区你懂得| 精品999在线观看| 僵尸世界大战2 在线播放| 狠狠97人人婷婷五月| 国产一区自拍视频| αv一区二区三区| 91美女片黄在线观看游戏| 久久久亚洲影院你懂的| 日韩在线视频播放| 久久久久久亚洲精品| 国产精品视频自拍| 九九精品视频在线观看| 午夜精品美女自拍福到在线| 欧美一级二级三级| 国产欧美日韩专区发布| 91好吊色国产欧美日韩在线| 久久久一本精品99久久精品66| 国产v综合ⅴ日韩v欧美大片| 日韩中文字幕网| 久久艹在线视频| 性高湖久久久久久久久aaaaa| 日韩欧美第二区在线观看| 精品一区日韩成人| 97欧美精品一区二区三区| 久久久久中文字幕| 久久亚洲国产精品| 亚洲国产日韩美| 欧美亚洲成人网| 国产精品夜夜夜一区二区三区尤| 久久婷婷国产综合尤物精品| 国产精品老女人精品视频| 亚洲va久久久噜噜噜久久狠狠| 国内免费精品永久在线视频| 久久99精品久久久久久三级| 亚洲最大av在线| 精品少妇在线视频| 久久久久久久久久久免费视频| 一本久道久久综合狠狠爱亚洲精品 | 久久99精品久久久久久琪琪| 日韩欧美亚洲日产国| 国产精品专区第二| 国产精品九九久久久久久久| 日本不卡二区| 99国产在线视频| 国产精品久久99久久| 日韩不卡视频一区二区| 99视频免费观看| 久久国产精品亚洲| 蜜桃在线一区二区三区精品| 日韩视频一区在线| 日韩亚洲在线视频| 国产精品27p| 亚洲精品中文字幕乱码三区不卡 | 成人免费a级片| 精品国产乱码久久久久软件| 免费毛片网站在线观看| www.久久色.com| 天天操天天干天天玩| 99国产精品白浆在线观看免费| 久久91亚洲精品中文字幕奶水| 免费av一区二区三区| 国产精品日韩专区| 欧美成人第一区| 国产精品无码专区av在线播放| 青青草成人免费在线视频| 国产成人亚洲精品| 日韩av电影在线免费播放| 久久一区二区三区av| 三级三级久久三级久久18|