Skip to main content

Algorithms

  • Chapter
  • First Online:
Software Engineering from Scratch
  • 1235 Accesses

Abstract

It must certainly be apparent to you by now that software engineering requires significantly more consideration than simply programming or, more idiomatically, “coding.” In the previous chapter, you were introduced to an engineering strategy meant to help optimize the performance and minimize operational cost risk in your programs, which was that of determining the appropriate data structures to use for a given scenario. In this chapter, you will be introduced to a set of algorithms that will provide strategies to further optimize your code. An algorithm is a defined set of instructions meant to solve particular problems with contextually similar circumstances, agnostic of the programming language used to solve the problem. An example of a problem that could be solved with algorithms is the Rubik’s Cube puzzle game. Given a particular combination of different colors on each side of the cube, a discrete set of steps can be enacted to solve part of the puzzle. With enough executed combinations of different algorithms to solve color patterns for either an individual side or a layer of the cube, you can solve the entire puzzle.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Jason Lee Hodges

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Hodges, J.L. (2019). Algorithms. In: Software Engineering from Scratch. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5206-2_13

Download citation

Publish with us

Policies and ethics