-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.html
222 lines (222 loc) · 8.74 KB
/
Readme.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
background-color: ghostwhite;
}
table{
margin:10% auto ; border: 2px solid black; width: 70%;
}
td{
margin:0% auto ; border: 2px solid black; width: 25%;
}
table p{
text-align: center; font-size: 20px; font-weight: 700;
}
td.input{
width: 60%;
}
td.time{
width: 20%;
}
td.memory{
width: 20%
}
h2.heading,div#testing h1{
margin-top:5%;font-weight: bolder; text-align: center; font-size: 35px;
}
table h3{
text-align: center; font-size: 28px; font-weight: 800;
}
div#Readme{
margin: 5% auto;
padding: 0%;
width: 40%;
border: 2px solid black;
}
div#Readme p{
font-size: 25px; font-weight: 500;
}
div#Readme h3{
font-size: 34px; font-weight: 800;
}
</style>
</head>
<body>
<div id="Head">
<h1 style="text-align: center; margin: 2%; margin-top: 2% ;font-size: 60px; font-weight: bolder">Logic In CS Assignment 2</h1>
</div>
<div id="Readme">
<ul style="margin: 2% auto;font-size:25px">
<li>
<h3>Compile the Program: <br></h3>
<ol style="font-size: 25px">
<li><p>Extract the files</p></li>
<li><p>Execute 'make' command</p></li>
<li><p>Execute './a.out'</p></li>
</ol>
</li>
<li>
<ol style="font-size: 25px">
<h3>Input Format</h3>
<li><p>The input is expected to be well formed</p></li>
<p class="ps"><i><u>Braces covering the complete expression need not be there</u></i></p>
<li><p>Brackets for negation operator are not required.</p></li>
<p class="ps">Ex. ~p is valid</p>
<p class="ps">Ex. ~(p^q) is valid</p>
</ol>
</li>
<li>
<h3>Limitations:</h3>
<p>The program may give a warning if a well bracketed input is not entered</p>
<p class="ps"><i><u>This is a segmentation fault handled by csignal (signal handling)</u></i></p>
</li>
<br>
<li>
<p>The program has been tested in a Linux environment(Ubuntu)<br>
<p><b>Ubuntu version 16.04.2</b></p>
<p><b>C++ version: C++ 11</b></p>
</p>
</li>
</ul>
</div>
<div id="testing" style=" margin:1% auto; margin-top: 10%;border: 2px solid black;width: 55%">
<h1 style="font-size: 45px">Testing and Results</h1>
<h2 class="heading">Part 1 Testing</h2>
<table style="margin:10% auto ;margin-top: 0%; border: 2px solid black; width: 98%">
<!-- <tr class="heading-row"><h2 class="heading">Part 1 Testing</h2></tr> -->
<tr>
<td class="input"><h3>Input</h3></td>
<td class="time"><h3>Time Taken(ms)</h3></td>
<td class="memory"><h3>Memory(kB)</h3></td>
</tr>
<tr>
<td class = "input"><p>aVb</p></td>
<td class="time"><p>7</p></td>
<td class="memory"><p>77.9</p></td>
</tr>
<tr>
<td class = "input"><p>(aVb)^(bVc)</p></td>
<td class="time"><p>8</p></td>
<td class="memory"><p>74.75</p></td>
</tr>
<tr>
<td class = "input"><p>((a>b)>d)V(cVd)</p></td>
<td class="time"><p>9</p></td>
<td class="memory"><p>84.158</p></td>
</tr>
<tr>
<td class = "input"><p>(((a>b)>c)>d)V((aVb)V(cVd))</p></td>
<td class="time"><p>9</p></td>
<td class="memory"><p>90.33</p></td>
</tr>
<tr>
<td class = "input"><p>((a>b)V(b>c))^((aV(b^c))Vc)</p></td>
<td class="time"><p>7</p></td>
<td class="memory"><p>90.33</p></td>
</tr>
<tr>
<td class = "input"><p>((~a>(b>~a))>a)>((~a>b)>c)</p></td>
<td class="time"><p>6</p></td>
<td class="memory"><p>74.75</p></td>
</tr>
<tr>
<td class = "input"><p>(((a^b)>(aVb))V((aVb)Vc)>((a^b)Vc))^(((a>b)>c)V(a>(b>(a>c))))</p></td>
<td class="time"><p>7</p></td>
<td class="memory"><p>110.592</p></td>
</tr>
</table>
<h2 class="heading">Part 2 Testing</h2>
<table style="margin:10% auto;margin-top: 0% ;margin-bottom: 1%; border: 2px solid black; width: 98%">
<!-- <tr class="heading-row"><h2 class="heading">Part 2 Testing</h2></tr> -->
<tr>
<td class="input"><h3>Input</h3></td>
<td class="time"><h3>Time Taken(ms)</h3></td>
<td class="memory"><h3>Memory(kB)</h3></td>
</tr>
<tr>
<td class = "input"><p>3<br>
(a>b)>c/P<br>
a>b/P<br>
c/>e/1/2</p></td>
<td class="time"><p>3</p></td>
<td class="memory"><p>78.6</p></td>
</tr>
<tr>
<td class = "input"><p>6<br>
(a>b)^(b>c)/P<br>
c/P<br>
c>a/^e1/1<br>
a>b/^e1/1<br>
a/>e/2/3<br>
b/>e/5/4</p></td>
<td class="time"><p>7</p></td>
<td class="memory"><p>81.08</p></td>
</tr>
<tr>
<td class = "input"><p>11<br>
(a^b)^c/P<br>
a^b/^e1/1<br>
c/^e2/1<br>
b/^e2/2<br>
b^c/^i/4/3<br>
a/^e1/2<br>
a^c/^i/6/3<br>
(a^c)V(b^c)/Vi2/5<br>
((a^c)V(b^c))V(aVb)/Vi1/8<br>
c/P<br>
(((a^c)V(b^c))V(aVb))^c/^i/10/9</p></td>
<td class="time"><p>9</p></td>
<td class="memory"><p>106.16</p></td>
</tr>
<tr>
<td class = "input"><p>11<br>
(a^b)^c/P<br>
a^b/^e1/1<br>
c/^e2/1<br>
b/^e2/2<br>
b^c/^i/4/3<br>
a/^e1/2<br>
a^c/^i/6/3<br>
(a^c)V(b^c)/Vi2/5<br>
((a^c)V(b^c))V(aVb)/Vi1/8<br>
c/P<br>
(((a^c)V(b^c))V(aVb))^c/^i/9/10</p></td>
<td class="time"><p>8</p></td>
<td class="memory"><p>106.16</p></td>
</tr>
<tr>
<td class = "input"><p>8<br>
(((a>b)>c)>d)^((a>(b>(c>d)))^(a>((b>c)>d)))/P<br>
(((a>b)>c)>d)/^e1/1<br>
(a>(b>(c>d)))^(a>((b>c)>d))/^e2/1<br>
(a>(b>(c>d)))/^e1/3<br>
(a>((b>c)>d))/^e2/3<br>
a/P<br>
b>(c>d)/>e/4/6<br>
(b>c)>d/>e/5/6</p></td>
<td class="time"><p>9</p></td>
<td class="memory"><p>95.8</p></td>
</tr>
</table>
<p class="ps" style="padding-left: 2%;">The time taken has been calculated using the GNU time command</p>
<p class="ps" style="padding-left: 2%;">The memory has been calculated using valgrind program</p>
</div>
<footer style="margin: 0% auto; margin-bottom: 4% ;width: 15%;">
<a href="Documentation\html\index.html" style="text-decoration: none;"><button style="font-size:20px;margin: 2% auto;text-decoration:none; height: 60px ; border:2px solid black; border-radius: 20px;">Detailed Documentation(Doxygen)</button></a>
</footer>
<div style="margin: 0% auto; width:50%;">
<h2 style="font-weight: bolder;font-size: 38px">Group Members:</h2>
<ol style="font-size: 30px">
<li><p><b>Lovekush Sharma</b> <u>ID NO.: 2017A7PS0125H</u></p></li>
<li><p><b>Ameya Salankar</b> <u>ID NO.: 2017A7PS0182H</u></p></li>
<li><p><b>Atharva Sune</b> <u>ID NO.: 2017A7PS0183H</u></p></li>
</ol>
</div>
</body>
</html>