1) Yes

2) a) a[ ] = [1,2,3,4,5,9]

b) Heapsort

3) 4)

 : -x : digits[x%10] : x/10

5)

 < SOLUTION1>: "" < SOLUTION2>: if (x<0) { sign = "-0"; x = -x;} < SOLUTION3>: x != 0 < SOLUTION4>: result = digits[x%10] + result; x = x / 10;

6) A binary tree with n leaves has at least n-1 inner nodes. The number of inner nodes is minimal if n=2 k and if the tree is balanced.

7) The bit vector representation takes 1.000.000-1 bits stating for each number between 1 and 1.000.000-1 whether this number is a prime number or not. This requires (1.000.0000-1) / (8 * 1024) 122 KB of memory.

8) 9) Using stacks involves the danger that some requests will never be served. The reason is that new requests are stored at the top of the stack and thus served before the earlier requests which reside further down in the stack.

In queues (FIFO data structures), however, requests are served in the order in which they have entered the system. Thus all requests only spend a finite waiting time in the system.

10) Integer, long, short, cardinal, float, double, boolean, character, ...

Record, tuple, array, struct, union, vector

11) -32768 .. 32767.

12)

 C, C++, Java Pascal i = 0; while (i < N) {      p(i);      i++; } i := 1; WHILE i <= N DO      BEGIN      p(i);      i = succ(i)      END

13) While-loop: The condition for leaving the loop is tested before an iteration step is executed. Do-while-loop: The condition for leaving the loop is tested after an iteration step is executed.

14) (dangling else problem)

 x -2 0 2 y undefined -1 3

16)

TMess: 1000 bits : 106 bits/s = 1ms
TTotal: (1000 : 106) + (100 : 106) + 2 Â· (10km : 2Â·102 km/ms) = 1ms + 0.1ms + 0.1ms = 1.2ms
Efficiency: T Mess : T Total = 1ms : 1.2ms 0.83

17)a) b) PC = (1-10-3)12

18) A bandlimited continuous-time signal, having no frequency components above fb Hertz, is completely specified by samples that are taken at a uniform rate greater than 2fb Hertz. The frequency 2fb is known as the Nyquist rate. The reconstruction of the continuous-time signal from the discrete-time samples can be achieved by lowpass filtering with cutoff frequency fb.

19) 20) 21) 22)

y(n)=x(n)+y(n-1).

23) 0.11

24) 3.25

25) transpose(A)*A = A*transpose(A) = Identity_matrix

26) g=ae+bf; h=ce+df

27) 28)   29) The wavelength is related to the propagation constant by = 2 . Therefore, L = 1 µm.

30) The solid angle of the cone is 0.031 sr. The power into this cone is P = A  0.31 W.

31) Photoresist is used in microelectronics to transfer mask patterns onto a surface for planar technologies like etching or deposition.Negative resist becomes insoluble (cross-linked) upon UV exposure, positive soluble.

32) Due the factor j the component Ey is lagging 90° in phase compared to Ex : Left circular polarization.

33) As the light travels back and forth along the extra path z, the next extinction occurs when
2 | z| = .

34) 35)

a) b)   c(t) cannot be realized, because it is non-causal
d(t) does not have this deficiency.

36) Sampling d(t) at the rate leads to If data pulses are positioned at intervals of T ideal sampling results in zero intersymbol interference.

37) A shorter time pulse inevitably leads to a higher bandwith of the corresponding spectrum (and vice versa).

38) Yes, look at the channel capacity and sufficiency high S/N.

39) 40) Envelope demodulator for amplitude modulation.

41) The bandwidth of an analogue telephone channel is 3.5kHz. The sampling theorem suggests a sampling frequency at least doubling the signal bandwidth. A sampling frequency of 8kHz is selected. By means of nonlinear quantization an S/N of 60dB can be obtained using 8bit;   8kHz 8bit = 64kbit/s.

42). a) d - 1     b) (d - 1) / 2