We can generalize the 1-dimensional discrete Fourier transform defined by equation (30.8) to d dimensions. The input

Question:

We can generalize the 1-dimensional discrete Fourier transform defined by equation (30.8) to d dimensions. The input is a d-dimensional array A = (aj1,j2,...,jd)?whose dimensions are?n1, n2, . . . ,nd, where?n1n2 . . .?nd =?n. We define the?d-dimensional discrete Fourier transform by the equation

image

for

image

a. Show that we can compute a d-dimensional DFT by computing 1-dimensional DFTs on each dimension in turn. That is, we first compute n/n1 separate?1-dimensional DFTs along dimension?1. Then, using the result of the DFTs along dimension?1?as the input, we compute?n/n2 separate?1-dimensional DFTs along dimension?2. Using this result as the input, we compute?n/n3 separate?1-dimensional DFTs along dimension?3, and so on, through dimension?d.

b.?Show that the ordering of dimensions does not matter, so that we can compute a?d-dimensional DFT by computing the?1-dimensional DFTs in any order of the?d?dimensions.

c. Show that if we compute each 1-dimensional DFT by computing the fast Fourier transform, the total time to compute a d-dimensional DFT is O(n lg n), independent of d.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Introduction to Algorithms

ISBN: 978-0262033848

3rd edition

Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest

Question Posted: