Book Image

Beginning Data Structures and Algorithms in C# [Video]

By : Marcin Jamro
Book Image

Beginning Data Structures and Algorithms in C# [Video]

By: Marcin Jamro

Overview of this book

Data structures allow us to organize data efficiently. They are critical to various problems and their suitable implementation can provide a complete solution that acts like reusable code. In this course, you will learn how to use various data structures while developing in the C# language as well as how to implement some of the most common algorithms used with such data structures. Initially, you will get to know arrays, lists, dictionaries, and sets together with real-world examples of your application. Then you will learn how to create and use stacks and queues. In the following part of the book, more complex data structures will be introduced—trees and graphs—together with some algorithms for searching the shortest path in a graph. We will also discuss how to organize code in a manageable, consistent, and extendable way. By the end of the course, you will have learned how to build components that are easy to understand, debug, and use in different applications. All the code and supporting files for this course are available on Github at https://github.com/PacktPublishing/Beginning-Data-Structures-and-Algorithms-in-C-Sharp
Table of Contents (5 chapters)
Chapter 5
Variants of Trees
Content Locked
Section 2
Binary Trees
Each node in a basic tree can contain any number of children. However, in the case of binary trees, a node cannot contain more than two children. - Assign a default value to the Children property in the constructor - Example – simple quiz