TCS
Company
Category
8. Let f(m,n) =45*m + 36*n, where m and n are integers (positive or negative) What is the minimum positive value for f(m,n) for all values of m,n (this may be achieved for various values of m and n)?
a. 9
b. 6
c. 5
d. 18
Read Solution (Total 1)
-
- m=1 and n=-1 so tht the min value we get for f(m,n)=9
- 10 years agoHelpfull: Yes(10) No(0)
TCS Other Question
A permutation is often represented by the cycles it has. For example, if we permute the numbers in the natural order to 2 3 1 5 4, this is represented as (1 3 2) (5 4). In this the (132) says that the first number has gone to the position 3, the third number has gone to the position 2, and the second number has gone to position 1, and (5 4) means that the fifth number has gone to position 4 and the fourth number has gone to position 5. The numbers with brackets are to be read cyclically. If a number has not changed position, it is kept as a single cycle. Thus 5 2 1 3 4 is represented as (1345)(2). We may apply permutations on itself If we apply the permutation (132)(54) once, we get 2 3 1 5 4. If we apply it again, we get 3 1 2 4 5 , or (1 2 3)(4) (5) If we consider the permutation of 7 numbers (1457)(263), what is its order (how many
times must it be applied before the numbers appear in their original order)?
a. 12
b. 7
c. 7! (factorial of 7)
d. 14
We have an equal arms two pan balance and need to weigh objects with integral weights in the range 1 to 40 kilo grams. We have a set of standard weights and can place the weights in any pan. . (i.e) some weights can be in a pan with objects and some weights can be in the other pan. The minimum number of standard weights required is:
a. 4
b. 10
c. 5
d. 6
Sol: Option A