• Nem Talált Eredményt

Introduction to the Theory of Computing 1. Second Repeat of the First Midterm Test 2018. December 17.

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Introduction to the Theory of Computing 1. Second Repeat of the First Midterm Test 2018. December 17."

Copied!
1
0
0

Teljes szövegt

(1)

Introduction to the Theory of Computing 1.

Second Repeat of the First Midterm Test 2018. December 17.

1. Determine all the three-digit integers whose last two digits in both of the numerical system of base 4 and in the numerical system of base 5 are 11 as well.

2. * Determine the sum of those positive numbers which are less than 630 and are relative prime to 630.

3. The code written in C below calculates the sum of the digits of the positive integer n (written in the decimal system). Suppose that the computer uses the “normal” basic operations (addition, subtraction, multiplication, division,...). Determine whether the algorithm is poly- nomial or not. (floor(n/10.0)gives the lower integer part of 10n back.)

x = 0; y = 0;

while (n > 0) {

x = floor(n/10.0);

y =y+n-10*x;

n = x;

}

printf(‘‘Result: %d’’, y);

4. The ray of light starting from the light source at the pointP(3,17,27) falls perpendicularly on the plane mirror of equation 3x−y−2z = 8.

Determine the point of incidence. (We can suppose that the light is spread in a straight line.)

5. Leta= (1,4,1)T,b = (2,1,−1)T,c= (12,13,−3)T and d= (7,7,−2)T be vectors in R3. Do they form a generating system in R3?

6. Let the vectorsa, b, c∈Rnbe linearly independent. Does it follow that the vectors 3a−b, 2a+cand 4b−3care always linearly independent?

The full solution of each problem is worth 10 points. Show all your work!

Results without proper justification or work shown deserve no credit.

Notes and calculators (and similar devices) cannot be used. The question denoted by an * is supposed to be more difficult.

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

Prove that if a system of linear equations has infinitely many solutions, then the set of solutions of it (as a set of vectors in R n ) contains a line.. Compute the matrix A 2018

Let the set V consist of those vectors in R 5 for which it holds that if we add an appropriate common number to each of their coordinates then we get a vector whose coordinates form

Let the subspace W of R 4 consist of those column vectors whose second coordinate is twice as large, and third coordinate is three times as large as the first one.. (For the

Results without proper justification or work shown deserve no credit.. Calculators (or other devices) are not allowed

Results without proper justification or work shown deserve no credit.. Calculators (or other devices) are not allowed

Suppose that the computer uses the “normal” basic operations (ad- dition, subtraction,

How many positive integers are there which are not greater than 504 and have a multiple which gives 1 as a remainder when divided by 504?. The first two coordinates of the vector a

The boss got all the wages in his group in crowns, and after paying everybody, 2 pennies remained.. How many subordinates did the boss have in