-
Notifications
You must be signed in to change notification settings - Fork 433
Expand file tree
/
Copy pathIntroduction.html
More file actions
269 lines (223 loc) · 11.5 KB
/
Introduction.html
File metadata and controls
269 lines (223 loc) · 11.5 KB
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<!DOCTYPE html>
<html lang="en"><head><!--Google Tag Manager--><script class="gtm">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W59SWTR');</script><!--End Google Tag Manager-->
<meta charset="utf-8"/>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<meta content="Welcome to Virtual Labs - A MHRD Govt of india Initiative" name="description"/>
<meta content="Virtual Labs - A MHRD Govt of india Initiative" name="author"/>
<title>Welcome to Virtual Labs - A MHRD Govt of india Initiative</title>
<link href="../images/favicon.ico" rel="shortcut icon"/>
<link href="../css/bootstrap.min.css" rel="stylesheet"/>
<!-- Important Owl stylesheet -->
<link href="../vendors/owl-carousel/owl.carousel.css" rel="stylesheet"/>
<link href="../vendors/owl-carousel/owl.theme.css" rel="stylesheet"/>
<link href="../vendors/font-awesome/css/font-awesome.css" rel="stylesheet"/>
<!-- Custom CSS -->
<link href="../css/style.css" rel="stylesheet"/>
<script src="tabs.js" type="text/javascript"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-67020197-1', 'auto');ga('send', 'pageview');</script>
</head>
<body class="index" id="page-top"><!--Google Tag Manager (noscript)--><noscript class="gtm"><iframe height="0" src="https://www.googletagmanager.com/ns.html?id=GTM-W59SWTR" style="display:none;visibility:hidden" width="0"></iframe></noscript><!--End Google Tag Manager (noscript)-->
<div id="top">
<header>
<!-- Navigation -->
<nav class="navbar navbar-default " style="background-color: white !important; margin-bottom: 0px !important;">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button class="navbar-toggle" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar" style="background-color: #77BB41"></span>
<span class="icon-bar" style="background-color: #77BB41"></span>
<span class="icon-bar" style="background-color: #77BB41"></span>
</button>
<a class="navbar-brand main-logo-a" href="http://vlab.co.in"><img class="img-responsive main-logo" src="../images/logo-new.png"/></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse menu-div" id="bs-example-navbar-collapse-1" style="border: 0px;">
<ul class="nav navbar-nav navbar-right menu-ul search-ul" style="position: relative; top: -5px;">
<li>
<form action="../search-result.html" method="get">
<!-- <input type="text" class="search-textbox" placeholder="SEARCH FOR A LAB" name="q" id="q"/>
<input type="submit" value="" class="search-button" />
</form> -->
</form></li>
</ul>
<ul class="nav navbar-nav navbar-right menu-ul">
<li class="page-scroll menu-li ">
<a class="menu-a" href="http://vlabs.ac.in/">HOME</a>
</li>
<!-- <li class="page-scroll menu-li menu-li-active">
<a class="menu-a menu-a-active" href="http://vlabs.ac.in/labs.html">ALL LABS</a>
</li>
--> <li class="page-scroll menu-li ">
<a class="menu-a" href="http://vlabs.ac.in/#partner">PARTNERS</a>
</li><li class="page-scroll menu-li ">
<a class="menu-a" href="http://vlabs.ac.in/#contact">CONTACT</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
</header>
<div id="content">
<div class="container-fluid">
<div class="row">
<hr style="background:#ff6600 !important; height: 8px; margin-top: 0px;"/>
</div> <!-- row end -->
</div> <!-- container-fluid end for slider -->
<!-- =================================================================================================================================== -->
<div class="container-fluid" style="margin-left: 35px; margin-right: 35px;">
<h2 class="text-h2-lightblue" style=" margin-bottom: 20px; margin-top: 10px; "><a class="sidebar-a" href="http://vlabs.ac.in/computer-science-and-engineering-labs.html">Computer Science & Engineering</a> →<a class="sidebar-a" href="../Introduction.html">Problem Solving Lab</a> →<a class="sidebar-a" href="../List of experiments.html">List Of Experiments</a><br/></h2>
<div class="row">
<div class="col-md-2 sidebar-col-2"><a class="sidebar-a" href="Introduction.html?domain=Computer Science&lab=Problem Solving Lab"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Introduction </h3> </a><a class="sidebar-a" href="Theory.html?domain=Computer Science&lab=Problem Solving Lab"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Theory </h3> </a><a class="sidebar-a" href="Objective.html?domain=Computer Science&lab=Problem Solving Lab"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Objective </h3> </a><a class="sidebar-a" href="Manual.html?domain=Computer Science&lab=Problem Solving Lab"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Manual </h3> </a><a class="sidebar-a" href="Experiment.html?domain=Computer Science&lab=Problem Solving Lab"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Experiment </h3> </a><a class="sidebar-a" href="Quizzes.html?domain=Computer Science&lab=Problem Solving Lab"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Quizzes </h3> </a><a class="sidebar-a" href="Feedback.html?domain=Computer Science&lab=Problem Solving Lab"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Feedback </h3> </a></div>
<div class="col-md-10 lab-list-col-10">
<!--edit -->
<h1 class="text-h2-lightblue">Advanced Arithmatic</h1><div class="content" id="experiment-article-section-1-content">
<br/>
<p>
Let us consider the task of representing very large numbers in C. As we know we cannot store an intger of maximum value 2<sup>63</sup>-1 and minimum value -2<sup>63 </sup>sing a long long data type in C. But how do we represent numbers which are not in this range, say for example 10<sup>50</sup>.In one of the problems we ask you to do this and explain how it is done usually.
</p>
<br/>
<h2>Problem 1:</h2>
<p>
The task is to accomplish addition of two large positive numbers
</p>
<br/><hr/>
<p><b>Input Specification</b></p><br/>
<p>
There will be two positive integers (< 10^50) separated by a space.
</p>
<br/><hr/>
<p><b>Output Specification</b></p><br/>
<p>
Output must contain a single number representing the sum of the two integers
</p>
<br/><hr/>
<p><b>Sample Input and Output</b></p><br/>
<p>
Input: 323289329329392893 3283928392839283928932329<br/>
Output:3283928716128613258325222<br/>
Input: 10 99<br/>
Output: 109<br/>
</p>
<p align="right"></p>
<br/><hr/>
<br/>
<h2>Problem 2:</h2>
<p>
Find the square root of a positive integer using binary search.
</p>
<br/><hr/>
<p><b>Input Specification</b></p><br/>
<p>
Input will contain a single positive integer N input from keyboard, lesser than 10^9.
</p>
<br/><hr/>
<p><b>Output Specification</b></p><br/>
<p>
Print the square root of the number upto 4 decimal places. A difference upto 0.001 from the the judges solution will be accepted as correct.
</p>
<br/><hr/>
<p><b>Sample Input and Output</b></p><br/>
<p>
Input: 5<br/>
Output: 2.2361<br/>
Input: 25<br/>
Output: 5.0000<br/>
</p>
<p align="right"></p>
<br/><hr/>
<br/><br/></div> </div>
</div>
</div>
<!-- =================================================================================================================================== -->
</div> <!-- content div -->
<footer id="footer"><div class="footer-top" id="contact">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6">
<h4>Community Links</h4>
<p>
<a href="http://www.sakshat.ac.in/">Sakshat Portal</a>
</p>
<p>
<a href="http://outreach.vlabs.ac.in/">Outreach Portal</a>
</p>
<p>
<a href="http://vlab.co.in/faq">FAQ : Virtual Labs</a>
</p>
</div>
<div class="col-lg-4 col-md-6">
<h4>Contact Us</h4>
<p> <strong>Phone:</strong> General Information : 011-26582050 </p>
<p> <strong>Email:</strong> support@vlab.co.in </p>
</div>
<div class="col-lg-4 col-md-6">
<h4>Follow Us</h4>
<div class="social-links">
<a class="twitter" href="https://twitter.com/TheVirtualLabs" style="background: #55acee;">
<i class="fa fa-twitter"></i>
</a>
<a class="facebook" href="https://www.facebook.com/Virtual-Labs-IIT-Delhi-301510159983871/" style="background: #3b5998;">
<i class="fa fa-facebook"></i>
</a>
<a class="google-plus" href="https://www.youtube.com/watch?v=asxRaOgk6a0" style="background: #e52d27;">
<i class="fa fa-youtube"></i>
</a>
<a class="linkedin" href="https://in.linkedin.com/in/virtual-labs-008ba9136" style="background: #2867B2;">
<i class="fa fa-linkedin"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</footer>
</div> <!-- top div -->
<script src="../js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="../js/bootstrap.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="../js/custom.js"></script>
<!-- Include js plugin -->
<script src="../vendors/owl-carousel/owl.carousel.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var owl = $("#owl-demo");
owl.owlCarousel({
navigation: true,
navigationText: [
"<img src='../images/left-arrow.png'>",
"<img src='../images/right-arrow.png'>"
],
/* autoPlay : 3000,
stopOnHover : true */
});
//owl for partner institutions
var owl = $("#owl-partner-institutions");
owl.owlCarousel({
navigation: true,
navigationText: [
"<img src='../images/left-arrow.png'>",
"<img src='../images/right-arrow.png'>"
],
autoPlay : 3000,
stopOnHover : true,
items : 8,
});
//owl for aboutus
var owl = $("#owl-aboutus");
owl.owlCarousel({
navigation: true,
singleItem:true
});
});
</script>
</body><!-- jQuery --></html>