Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a system with three input signals x , y and max and one output signal z . All signals are binary encoded non -

Consider a system with three input signals x,y and max and one output signal z. All signals are binary encoded non-negative integers.
System specification:
if (x-y) belongs to the interval 0x-ymax, then z=x-y;
if (x-y)>max, then z=max;
if (x-y)0, then z=0.
Assume that a procedure difference (A,B,s,C) has been previously defined, where A,B and C are non-negative integers and s is a 1-bit number, so that it computes
the difference A-B under the form A-B=(-1)5*C(s is the sign and C is the absolute value of the result).
Which of the following algorithms properly describes the system?
difference (x,y,a,b;
difference (max, b, c, d);
if c=1 then emax; else ed; end if;
if a=1 then z0; else ze; end if;
difference (x,y,a,b);
difference(max, b, c, d);
if c=1 then emax; else eb; end if;
if a=1 then z0; else zd; end if;
difference (x,y,a,b);
difference (max, b, c, d);
if c=1 then emax; else eb; end if;
if a=1 then z0; else ze; end if;
Consider a system with three input signals x,y and max and one output signal z. All signals are binary encoded non-negative integers.
System specification:
if (x-y) belongs to the interval 0x-ymax, then z=x-y;
if (x-y)>max, then z=max;
if (x-y)0, then z=0.
Assume that a procedure difference (A,B,s,C) has been previously defined, where A,B and C are non-negative integers and s is a 1-bit number, so that it computes
the difference A-B under the form A-B=(-1)5*C(s is the sign and C is the absolute value of the result).
Which of the following algorithms properly describes the system?
difference (x,y,a,b;
difference (max, b, c, d);
if c=1 then emax; else ed; end if;
if a=1 then z0; else ze; end if;
difference (x,y,a,b);
difference(max, b, c, d);
if c=1 then emax; else eb; end if;
if a=1 then z0; else zd; end if;
difference (x,y,a,b);
difference (max, b, c, d);
if c=1 then emax; else eb; end if;
if a=1 then z0; else ze; end if;
image text in transcribed

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

Students also viewed these Databases questions

Question

=+j on to staff their operations in the global marketplace.

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago