Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The imprecision of floating-point arithmetic can have disastrous consequences if not understood. On Feb 25 1991, a Scud missile struck the American army barracks in

image text in transcribed

image text in transcribed

The imprecision of floating-point arithmetic can have disastrous consequences if not understood. On Feb 25 1991, a Scud missile struck the American army barracks in Dharan killing 28, even though the barracks were defended by a Patriot missile battery. The Patriot missile failed to intercept the Scud because its internal clock, implemented as a counter that incremented every 0.1 second, had round-off. To determine the time in seconds, the value of the counter (the count) is multiplied by a 24 bit quantity that represents the fractional binary approximation to 1/10 (the leading bit plus the first 23 bits to the right of the binary point) (http://ta.twi.tudelft.nl/users/vuik/wi211/disasters.html) (a) What is the binary representation of 0.1? What did the Patriot's computer approximate as 0.1 (call this r)? (b) Let the Patriot's approximation of 0.1 be r. What is the binary representation of | r-0.1 ? (c) What is the approximate decimal value of |r-0.1 1? (d) The clock starts at zero when the system is first powered-up and keeps counting up from there. In this case, the system had been running for 100 hours. What was the difference between time computed by the Patriot software and the actual time? (e) The system predicts where an incoming missile will appear based on its velocity and the time of last radar sighting. Given that a Scud travels at 2000 m/s, how far off was the prediction? The imprecision of floating-point arithmetic can have disastrous consequences if not understood. On Feb 25 1991, a Scud missile struck the American army barracks in Dharan killing 28, even though the barracks were defended by a Patriot missile battery. The Patriot missile failed to intercept the Scud because its internal clock, implemented as a counter that incremented every 0.1 second, had round-off. To determine the time in seconds, the value of the counter (the count) is multiplied by a 24 bit quantity that represents the fractional binary approximation to 1/10 (the leading bit plus the first 23 bits to the right of the binary point) (http://ta.twi.tudelft.nl/users/vuik/wi211/disasters.html) (a) What is the binary representation of 0.1? What did the Patriot's computer approximate as 0.1 (call this r)? (b) Let the Patriot's approximation of 0.1 be r. What is the binary representation of | r-0.1 ? (c) What is the approximate decimal value of |r-0.1 1? (d) The clock starts at zero when the system is first powered-up and keeps counting up from there. In this case, the system had been running for 100 hours. What was the difference between time computed by the Patriot software and the actual time? (e) The system predicts where an incoming missile will appear based on its velocity and the time of last radar sighting. Given that a Scud travels at 2000 m/s, how far off was the prediction

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

What are the qualities to look for in a prospective franchisee?

Answered: 1 week ago