Friday, July 28, 2017

Tranlating to Predicate Logic

To translate statements stated in English using a given set of predicate symbols, we  first restate English proposition using the predicates, connectives, and quantifiers such that it preserve its original meaning. Then replace the English phrases with the corresponding symbols
.
Example 1: Given the sentence "Not every integer is even".
Now let the predicate "E(x)" represent x is even, and that the universe is the set of integers, First restate it as "It is not the case that every integer is even"
Then "it is not the case" can be represented by the connective "", "every object x in the universe" by " x", and "x is even" by E(x).
Thus altogether wff becomes x E(x).




Example 2
Take universe of discourse a set of all students of Kathmandu College.
P(x) represents:  x takes Discrete Mathematics class.
Here universal quantification is x  P(x),  which represent the English sentence “all students of Kathmandu college take Discrete Mathematics class”,  and now it is a proposition.
The universal quantification is conjunction of all the propositions that are obtained by assigning the value of the variable in the predicate. Going back to above example if universe of discourse is a set {Ram, Shyam, Hari, Sita} then the truth value of the universal quantification is given by P(ram) P(Shyam) P(Hari) P(Sita) i.e. it is true only if all the atomic propositions are true.
Existential Quantifier
Universal quantifier, denoted by , is used for existential quantification. The existential quantification of P(x), denoted by x P(x), is a proposition “P(x) is true for some values of x in the universe of discourse”. The other forms of representation include “there exists x such that P(x) is true” or “P(x) is true for at least one x”.
Example 3
For the  same  problem  given  in  universal  quantification  x  P(x)  is  a  proposition  is represent like “ some students of Kathmandu College take Mathematics class”.
The existential quantification is the disjunction of all the propositions that are obtained by assigning the values of the variable from the universe of discourse. So the above example is equivalent to P(Ram)   P(Shyam)P(Hari)P(Sita), where all the instances of variable are as in example of universal quantification. Here if at least one of the students takes graphics class then the existential quantification results true.
Translating the Sentences into Logical Expression
Example 4
Translate “not every integer is even” where the universe of discourse is set of integers.
Solution
Let E(x) denotes x is even.
Then ¬xE(x) represents the above statement “not every integer is even”
Example 5
Translate “every man is mortal”
Let M(x) denote x is mortal, where x is from set of man (here universe of discourse is all man)
Then, x M(x) represent that “for all x ,  x is mortal.”

Some English word You need to know




Day-1:
1)      Conversant/n/-
a.        Able to converse: He is able to converse in two languages.
b.      Familiar: I am conversant with new rules and regulations.
2)      Demote/v/-
a.       To cause demotions: he was demoted in his job.
3)      Vain/adj/-
a.       Worthless and useless: A vain business, a vain attempt.
4)      Sophisticated/adj/ -
a.       Complex (well developed and advanced)
b.      Luxurious (expensive and attractive)
eg: a sophisticated hotel.
c.       having a lot of knowledge: a sophisticated person.
/opp./- unsophisticated
5)      Provincial /adj/-
a.       of the province or region: provincial party/government
b.      having or showing narrow outlook(limited): ram has provincial attitude/ideology.
6)      parochial/adj/-
a.       of the church: a parochial school.
b.      provincial (narrow-minded)
7)      insular/adj/- in+sul+ar=island
a.       of a typical island: insular life style
b.      parochial (limited minded): British are insular.
8)      Appeal/v/-
a.       greatly attract
Appealing/adj/- that you like:  appealing weather/smile/music etc.
9)      startling /adj/ : extremely surprising
10)   Unusual/adj/-
a.       other than usual: unusual power of memory.
11)   Seasoned/adj/-
a.       with salt and flavor: seasoned noodles.
b.      dry: seasoned wood
c.       Highly experienced: seasoned teacher.
12)   Facet/n/-
a.       front part of t he gemstone.
b.      part or aspect. eg: facet of life.
13)   Ambivalent /adj/
a.       of person (having contradictory feeling at the same time): I am ambivalent about my job.
14)   democratize/v/-
a.       to make democratic.
b.      /fig./ -to make st. available to all: to democratize education.
15)   Repast/n/- meal
16)   Victuals/n/- food or drink.
17)   stew /n/-
a.       meat/fish/vegetable
b.      /v/- to cook meat/vegetable/fish in liquid.
18)   Fodder /n/- food for animal or birds.
19)   Viand/n/- an item of food.
20)   Fallible /n/- likely to make mistake eg. Human beings are fallible.
/opp/-infallible
21)    Daft /n/- illogical or silly: daffy person.
22)   Inpet/adj/-
a.       socially awakward: inpet student in a classroom.
b.      Gauche
23)   Anodyne /N/ -
a.        Pain killer
b.      soothing- giving relief.
24)   woebegone /adj/-
a.       causing or feeling sorrow: woebegone song/hills/expressions.

Sunday, July 23, 2017

Simulation Time and Clock Time
There are different notation of time in simulation study. The most important discussion on time in simulation is about physical time and the simulation time.
Physical time is  a time represented by system such as computer clock. It is also sometime known as clock time.

Where as a simulation time is defined during the experimental design and it may be different then clock time.

Since simulation is a model of real system. During the representation of system in to a simulation model, there may be some gap and all the information may not be included in a model. Only the relevant information are included in a model. Now the time represented by such model may not be equal to the clock time which represent an actual time. The following figure can be used to illustrate this concept.

 
Now the system and its model with time parameters are:
 



Wall clock time
A simulation program can usually obtain the current value of wall clock by reading a hardware clock maintained by some operating system (accurate to some specifiable amount of error).

Simulation time
• It is defined as totally ordered set of values where each value represents an instant of time in the physical system being modeled. Further, for any two values of simulation time T1 representing physical time P1, and T2 representing physical time P2, we have following relations"
              (T2–T1) = K*(P2–P1) for some constant K.
• If (T1<T2), then T1 is said to be occur before T2, and if T1>T2, then T1 is said to occur after T2.

When simulation execution time is paced by wall clock time, then it is known as real time simulation.