<< Chapter < Page Chapter >> Page >

There exists a different recursive FFT that is optimal cache-oblivious, however, and that is the radix- n “four-step” Cooley-Tukey algorithm (again executed recursively, depth-first) [link] . The cache complexity Q o of this algorithm satisfies the recurrence:

Q o ( n ; Z ) = n n Z 2 n Q o ( n ; Z ) + Θ ( n ) otherwise .

That is, at each stage one performs n DFTs of size n (recursively), then multiplies by the Θ ( n ) twiddle factors (and does a matrix transposition to obtain in-order output),then finally performs another n DFTs of size n . The solution of [link] is Q o ( n ; Z ) = Θ ( n log Z n ) , the same as the optimal cache complexity [link] !

These algorithms illustrate the basic features of most optimal cache-oblivious algorithms: they employ a recursive divide-and-conquerstrategy to subdivide the problem until it fits into cache, at which point the subdivision continues but no further cache misses arerequired. Moreover, a cache-oblivious algorithm exploits all levelsof the cache in the same way, so an optimal cache-oblivious algorithm exploits a multi-level cache optimally as well as a two-levelcache [link] : the multi-level “blocking” is implicit in the recursion.

Cache-obliviousness in practice

Even though the radix- n algorithm is optimal cache-oblivious, it does not follow that FFT implementation is a solved problem. Theoptimality is only in an asymptotic sense, ignoring constant factors, O ( n ) terms, etcetera, all of which can matter a great deal in practice. For small or moderate n , quite different algorithms may be superior, as discussed in "Memory strategies in FFTW" . Moreover, real caches are inferior to an ideal cache in several ways. Theunsurprising consequence of all this is that cache-obliviousness, like any complexity-based algorithm property, does not absolve one from theordinary process of software optimization. At best, it reduces the amount of memory/cache tuning that one needs to perform, structuringthe implementation to make further optimization easier and more portable.

Perhaps most importantly, one needs to perform an optimization that has almost nothing to do with the caches: the recursion must be“coarsened” to amortize the function-call overhead and to enable compiler optimization. For example, the simple pedagogical code of thealgorithm in [link] recurses all the way down to n = 1 , and hence there are 2 n function calls in total, so that every data point incurs a two-function-call overhead on average. Moreover, thecompiler cannot fully exploit the large register sets and instruction-level parallelism of modern processors with an n = 1 function body. In principle, it might be possible for a compiler to automatically coarsen the recursion, similar to how compilers canpartially unroll loops. We are currently unaware of any general-purpose compiler that performs this optimization, however. These problems can be effectively erased, however, simply by making the base cases larger, e.g. the recursion could stop when n = 32 is reached, at which point a highly optimized hard-coded FFT of thatsize would be executed. In FFTW, we produced this sort of large base-case using a specialized code-generation program described in "Generating Small FFT Kernels" .

Questions & Answers

I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
What would be the best educational aid(s) for gifted kids/savants?
Heidi Reply
treat them normal, if they want help then give them. that will make everyone happy
Saurabh
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Fast fourier transforms. OpenStax CNX. Nov 18, 2012 Download for free at http://cnx.org/content/col10550/1.22
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Fast fourier transforms' conversation and receive update notifications?

Ask