Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
100 views
in General by (108k points)
closed by

The minimum number of arithmetic operations required to evaluate the polynomial

P(X) = X5 + 4X3 + 6X + 5 for a given value of X, using only on temporary variable is _______

1 Answer

0 votes
by (101k points)
selected by
 
Best answer

Concept:

To find the number of operations using a temporary variable, we need to simplify the equation to obtain bracket pairs and arithmetic signs.

Explanation:

P(X) = X5 + 4X3 + 6X + 5

P(X) = X (X4 + 4X2 + 6) + 5

P(X) = X (X (X3 + 4X) + 6) + 5

P(X) = X (X (X (X2 + 4)) + 6) + 5

P(X) = X (X (X (X (X) + 4)) + 6) + 5

Method 1 -

Let T be a temporary variable to store intermediate results.

  1. T = (X) * (X)
  2. T = T + 4
  3. T = (X) * (T)
  4. T = (X) * (T)
  5. T = T + 6
  6. T = (X) * T
  7. T = T + 5

 

Hence, 7 operations are used with one temporary variable.

Method 2 -

Counting number of bracket pairs gives the number of multiplication operations = 4

Counting number of + signs gives the number of addition operations = 3

Total operations = 7

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...