万本电子书0元读

万本电子书0元读

顶部广告

C# Data Structures and Algorithms电子书

售       价:¥

11人正在读 | 0人评论 9.8

作       者:Marcin Jamro

出  版  社:Packt Publishing

出版时间:2018-04-19

字       数:34.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
A complete guide on using data structures and algorithms to write sophisticated C# code About This Book ? Master array, set and map with trees and graphs, among other fundamental data structures ? Delve into effective design and implementation techniques to meet your software requirements ? Explore illustrations to present data structures and algorithms, as well as their analysis in a clear, visual manner. Who This Book Is For This book is for developers who would like to learn the Data Structures and Algorithms in C#. Basic C# programming knowledge would be an added advantage. What You Will Learn ? How to use arrays and lists to get better results in complex scenarios ? Implement algorithms like the Tower of Hanoi on stacks of C# objects ? Build enhanced applications by using hashtables, dictionaries and sets ? Make a positive impact on efficiency of applications with tree traversal ? Effectively find the shortest path in the graph In Detail Data structures allow organizing data efficiently. They are critical to various problems and their suitable implementation can provide a complete solution that acts like reusable code. In this book, 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. At the beginning, 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, the more complex data structures will be introduced, namely trees and graphs, together with some algorithms for searching the shortest path in a graph. We will also discuss how to organize the code in a manageable, consistent, and extendable way. By the end of the book,you will learn how to build components that are easy to understand, debug, and use in different applications. Style and approach Readers will be taken through all the indispensable data structures and algorithms so they can begin their coding journey in C#. At each step, the book will show how to implement these via examples while also discussing the attributes of each algorithm so readers are capable to make an informed choice.
目录展开

Title Page

Copyright and Credits

C# Data Structures and Algorithms

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

Getting Started

Programming language

Data types

Value types

Structs

Enumerations

Reference types

Strings

Object

Dynamic

Classes

Interfaces

Delegates

Installation and configuration of the IDE

Creating the project

Input and output

Reading from input

Writing to output

Launching and debugging

Summary

Arrays and Lists

Arrays

Single-dimensional arrays

Example – month names

Multi-dimensional arrays

Example – multiplication table

Example – game map

Jagged arrays

Example – yearly transport plan

Sorting algorithms

Selection sort

Insertion sort

Bubble sort

Quicksort

Simple lists

Array list

Generic list

Example – average value

Example – list of people

Sorted lists

Example – address book

Linked lists

Example – book reader

Circular-linked lists

Implementation

Example – spin the wheel

Summary

Stacks and Queues

Stacks

Example – reversing words

Example – Tower of Hanoi

Queues

Example – call center with a single consultant

Example – call center with many consultants

Priority queues

Example – call center with priority support

Summary

Dictionaries and Sets

Hash tables

Example – phone book

Dictionaries

Example – product location

Example – user details

Sorted dictionaries

Example – definitions

Hash sets

Example – coupons

Example – swimming pools

"Sorted" sets

Example – removing duplicates

Summary

Variants of Trees

Basic trees

Implementation

Node

Tree

Example – hierarchy of identifiers

Example – company structure

Binary trees

Implementation

Node

Tree

Example – simple quiz

Binary search trees

Implementation

Node

Tree

Lookup

Insertion

Removal

Example – BST visualization

AVL trees

Implementation

Example – keep the tree balanced

Red-black trees

Implementation

Example – RBT-related features

Binary heaps

Implementation

Example – heap sort

Binomial heaps

Fibonacci heaps

Summary

Exploring Graphs

Concept of graphs

Applications

Representation

Adjacency list

Adjacency matrix

Implementation

Node

Edge

Graph

Example – undirected and unweighted edges

Example – directed and weighted edges

Traversal

Depth-first search

Breadth-first search

Minimum spanning tree

Kruskal's algorithm

Prim's algorithm

Example – telecommunication cable

Coloring

Example – voivodeship map

Shortest path

Example – game map

Summary

Summary

Classification of data structures

Diversity of applications

Arrays

Lists

Stacks

Queues

Dictionaries

Sets

Trees

Heaps

Graphs

The last word

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部