Docsity

6 Problems with Solutions - Communication Systems | ECE 4601, Assignments of Digital Communication Systems

Toggle sidebar
bg1
ECE 4601
ASSIGNMENT NO. 6
DATE ASSIGNED:Tuesday October 21, 2003
DATE DUE:Tuesday October 28, 2003
READING:Chapters 9, 10
PROBLEM 6.1. Let xmin denote the x that minimizes a function f(x).The gradient algorithm for f(x) produces
an estimate xk for xmin at each iteration k ∈{1, 2, …}:
Initialize: x0=anywhere
Iterate for k= 1, 2, 3, …xk+1 =xk – µf´(xk),
where f ´(xk) is shorthand notation for the derivative df(x) ⁄ dx evaluated at x=xk.
We know that the minimum of f(x) = (x– 3)2occurs at xmin = 3.
How many iterations of the gradient algorithm (with step size µ= 0.5 and initialization x0= 0)
are required to come within 1% of the correct answer?
PROBLEM 6.2. The gradient algorithm “works” (i.e.,xk→xmin) only when the step size µ is chosen
sufficiently small. If µ is too large, the algorithm becomes unstable and xk→ ∞. Specify the
values of µ for which the gradient algorithm is unstable when f(x) = (2x– 3)2.
PROBLEM 6.3. Use the gradient algorithm to estimate (to 3 decimal places of precision) the xmin that
minimizes f(x) = x2+ex.
PROBLEM 6.4. The following piecewise-linear function f(x)achieves a minimum at xmin = 2:
[Assume that the derivative is zero at the discontinuities, so that f´(2) = f´(3) = f´(4) = 0.]
Let xk denote an estimate of xmin after the k-th iteration of the gradient algorithm with step
size µ and initialization x0= 0. Let x∞=xk.
(a) If µ= 0.3, find x5.
(b) If µ= 0.3, find x57,893,552,206.
(c) Find a value of µ such that x∞=2.
(d) Find a value of µ such that x∞=4.
1
2
---
0 2 3 41 5
1
2
x
f(x)
0.5
lim
k→ ∞
pf2

Partial preview of the text

Download 6 Problems with Solutions - Communication Systems | ECE 4601 and more Assignments Digital Communication Systems in PDF only on Docsity!

ECE 4601

ASSIGNMENT NO. 6

DATE ASSIGNED: Tuesday October 21, 2003

DATE DUE: Tuesday October 28, 2003

READING: Chapters 9, 10

PROBLEM 6.1. Let x min denote the x that minimizes a function f ( x ).The gradient algorithm for f ( x ) produces

an estimate xk for x min at each iteration k ∈{1, 2, … }:

Initialize: x 0 = anywhere

Iterate for k = 1, 2, 3, … xk +1 = xk – μ f ´( xk ),

where f ´ ( xk ) is shorthand notation for the derivative df ( x ) ⁄ dx evaluated at x = xk.

We know that the minimum of f ( x ) = ( x – 3)^2 occurs at x min = 3.

How many iterations of the gradient algorithm (with step size μ = 0.5 and initialization x 0 = 0)

are required to come within 1% of the correct answer?

PROBLEM 6.2. The gradient algorithm “works” ( i.e. , xk → x min) only when the step size μ is chosen

sufficiently small. If μ is too large, the algorithm becomes unstable and xk → ∞¶. Specify the

values of μ for which the gradient algorithm is unstable when f ( x ) = (2 x – 3)^2.

PROBLEM 6.3. Use the gradient algorithm to estimate (to 3 decimal places of precision) the x min that

minimizes f ( x ) = x^2 + ex.

PROBLEM 6.4. The following piecewise-linear function f ( x ) achieves a minimum at x min = 2:

[Assume that the derivative is zero at the discontinuities, so that f ´(2) = f ´(3) = f ´(4) = 0.]

Let xk denote an estimate of x min after the k -th iteration of the gradient algorithm with step

size μ and initialization x 0 = 0. Let x ∞ = xk.

(a) If μ = 0.3, find x 5.

(b) If μ = 0.3, find x 57,893,552,206.

(c) Find a value of μ such that x ∞ = 2.

(d) Find a value of μ such that x ∞ = 4.

0 1 2 3 4 5

1

2

x

f ( x )

lim

k (^) → ∞

PROBLEM 6.5. Consider the function f ( x ) =. Let x min denote the only positive number that

minimizes f ( x ), so that f ( x min) < f ( x ) for all positive x ≠ x min. Suppose you intend to use the

gradient algorithm with step size μ = 0.0001 to find x min. Because f ( x ) is not convex, this

algorithm will converge to x min only when the initial condition x 0 falls within a certain

range, say a < x 0 < b. Specify (to three decimal places of precision) the numbers a and b.

PROBLEM 6.6. Let f ( w ) be a function of a vector w = [ w 1 , w 2 ] T , and let w min denote the vector that

minimizes f ( w ). The gradient algorithm for f ( w ) produces an estimate w k for w min at each

iteration k ∈{1, 2, 3, …}:

Initialize: w 0 = anywhere

Iterate for k = 1, 2, 3, … w k +1 = w k – μ∇ f ( w k ),

where ∇ f ( w k ) is shorthand notation for the gradient ∇ f ( w ) = [∂ f ( w ) ⁄ ∂ w 1 , ∂ f ( w ) ⁄ ∂ w 2 ] T

evaluated at w = w k.

Suppose f ( w ) = w 12 + w 22 + exp(– w 1 – w 2 ). This function is minimized by the vector

w min = [0.2836, 0.2836] (to four decimal places).

(a) Find ∇ f ( w ).

(b) Specify the estimate w k of w min produced by the gradient algorithm with initialization

w = [0, 0] T^ and step size μ = 0.3 for iterations k = 1 , 2 , and 3.

sin x x