Algorithms in a Nutshell: A Practical Guide

Algorithms in a Nutshell: A Practical Guide

Language: English

Pages: 390

ISBN: 1491948922

Format: PDF / Kindle (mobi) / ePub

Creating robust software requires the use of efficient algorithms, but programmers seldom think about them until a problem occurs. This updated edition of Algorithms in a Nutshell describes a large number of existing algorithms for solving a variety of problems, and helps you select and implement the right algorithm for your needs—with just enough math to let you understand and analyze algorithm performance.

With its focus on application, rather than theory, this book provides efficient code solutions in several programming languages that you can easily adapt to a specific project. Each major algorithm is presented in the style of a design pattern that includes information to help you understand why and when the algorithm is appropriate.

With this book, you will:

  • Solve a particular coding problem or improve on the performance of an existing solution
  • Quickly locate algorithms that relate to the problems you want to solve, and determine why a particular algorithm is the right one to use
  • Get algorithmic solutions in C, C++, Java, and Ruby with implementation tips
  • Learn the expected performance of an algorithm, and the conditions it needs to perform at its best
  • Discover the impact that similar design decisions have on different algorithms
  • Learn advanced data structures to improve the efficiency of algorithms

Fundamentals of Database Systems (4th Edition)

Big Data and The Internet of Things: Enterprise Information Architecture for A New Age

Concise Guide to Databases: A Practical Introduction (Undergraduate Topics in Computer Science)

Understanding Operating Systems (7th Edition)

Intelligent Robotics and Applications: 4th International Conference, ICIRA 2011, Germany, Part I















2001. Graham, R. L., "An Efficient Algorithm for Determining the Convex Hull of a Finite Planar Set," Information Processing Letters 1: 132-133, 1972. Melkman, A., "On-line construction of the convex hull of a simple polygon," Information Processing Letters 25: 11-12, 1987. Overmars, Mark and Jan van Leeuwen, "Maintenance of Configurations in the Plane," Journal of Computer and System Sciences, 23(2): 166-204, 1981. Palazzi, Larry and Jack Snoeyink, "Counting and Reporting Red/Blue Segment, accessed June 9, 2008. Gamma, Erich, Richard Helm, Ralph Johnson, and John M. Vlissides, Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley Professional, 1995. Goldberg, David, "What Every Computer Scientist Should Know About Floating-Point Arithmetic." ACM Computing Surveys, March 1991, Skiena, Steve S., The Algorithm Design Manual. Springer, 1998.

in the input array. In the second pass, the inner while loop is executed B[i] times for each of the 0≤i

then crash, often with disastrous consequences. One might write a program to monitor memory allocations and deallocations and report on a program's memory profile in order to detect the presence of memory leaks. Such a memory profiler can be written quite simply by writing new malloc() and free() functions that record the appropriate information before allocating and freeing memory. We want to record every memory allocation and when that memory is freed, we must remove it from the set of active

of 1≤j≤m partners, tj∈T; and a set of 1≤k≤p acceptable pairs, pk∈P, that associate an element si∈S with a partner tj∈T. The sets S and T are disjoint, which gives this problem its name. Output A set of pairs (si,tj) selected from the original set of acceptable pairs, P. These pairs represent a maximum number of pairs allowed by the matching. The algorithm guarantees that no greater number of pairs is possible to be matched (although there may be other arrangements that lead to the same number

Download sample