Skip to main content Accessibility help
×
Hostname: page-component-5c6d5d7d68-wp2c8 Total loading time: 0 Render date: 2024-08-16T22:20:58.229Z Has data issue: false hasContentIssue false

Appendix B - Algorithm Design and Analysis

Published online by Cambridge University Press:  26 October 2017

Tandy Warnow
Affiliation:
University of Illinois, Urbana-Champaign
Get access

Summary

This appendix provides necessary background in algorithm design and analysis, and in proving algorithms correct. It covers techniques for computing the running time of an algorithm, the standard “Big-O” notation, what it means for a problem to be NP-hard or NP-complete, and for a problem to be polynomial time. However, the material in this appendix is not meant as a substitute for undergraduate courses in discrete mathematics and algorithm design and analysis, but rather to provide some of the material that the reader needs to know. We recommend that readers without sufficient background in this area consult other textbooks for background material.

Discrete Mathematics

Graph Theory

A graphG consists of a set V of vertices and a set E of edges, where the edges are unordered pairs of vertices; we often write graphs using notation G = (V,E). The edges of a simple graph are always distinct (thus, there are no self-loops, which are edges between a vertex and itself), and no parallel edges (two edges with the same endpoints). In this text, we will only discuss simple graphs.

Two vertices that are connected by an edge are said to be adjacent and the edge that connects them is said to be incident to its vertex endpoints. If a vertex a is adjacent to vertex b, it is said to be a neighbor of b. The degree of a vertex is the number of edges that are incident with the vertex, which is the same as the number of vertices that are neighbors of the vertex.

A path in a graph is a sequence of vertices v1, v2, …, vk so that vi is adjacent to vi+1 for each i = 1,2, …, k−1, with the assumption that no two vertices are the same except perhaps v1 and vk. A path in which any vertex can be repeated is called a walk. A graph for which every two vertices are connected by a path is said to be connected. The maximal connected subgraphs of a graph are called the components of the graph.

Type
Chapter
Information
Computational Phylogenetics
An Introduction to Designing Methods for Phylogeny Estimation
, pp. 304 - 326
Publisher: Cambridge University Press
Print publication year: 2017

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Algorithm Design and Analysis
  • Tandy Warnow, University of Illinois, Urbana-Champaign
  • Book: Computational Phylogenetics
  • Online publication: 26 October 2017
  • Chapter DOI: https://doi.org/10.1017/9781316882313.015
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Algorithm Design and Analysis
  • Tandy Warnow, University of Illinois, Urbana-Champaign
  • Book: Computational Phylogenetics
  • Online publication: 26 October 2017
  • Chapter DOI: https://doi.org/10.1017/9781316882313.015
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Algorithm Design and Analysis
  • Tandy Warnow, University of Illinois, Urbana-Champaign
  • Book: Computational Phylogenetics
  • Online publication: 26 October 2017
  • Chapter DOI: https://doi.org/10.1017/9781316882313.015
Available formats
×