Skip to main content

Dictionaries and Sets

  • Chapter
  • First Online:
Julia - Bit by Bit

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 3109 Accesses

Abstract

In this chapter, we will explain the following:

  • What is a dictionary (Dict)

  • How to create and use dictionaries

  • How to implement a letter-frequency program using a Dict

  • What is a Set

  • Operations on sets: union, union!, intersect, etc.

  • How to use a Set to find all unique words in an input file

  • How to build a thesaurus from lines of synonyms

  • How to generate all combinations and permutations of a set

  • How to write a program to evaluate a hand in Scrabble

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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 PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Kalicharan, N. (2021). Dictionaries and Sets. In: Julia - Bit by Bit. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-73936-2_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-73936-2_10

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-73935-5

  • Online ISBN: 978-3-030-73936-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics