Code Monkey home page Code Monkey logo

algorithms-4th-edition-in-csharp's Introduction

Algorithms-4th-Edition

算法(第4版)习题题解 C# 版,勘误感谢名单:THANKS.md

当前已经完成到 2.5。

可以在这个网站搜索题解:https://ikesnowy.github.io/Alg4-Solutions/

目录

使用方法 & 开发环境

使用方法:  

配置运行题解代码的详细教程见:如何运行题解代码?

获取图文版解答可以参考 我的博客 (博客园)或者 题解网站 (GitHub Pages)。

文件说明:

控制台应用程序  

Program.cs 是程序的运行代码。 需要实现的类会位于其他源文件中,例如实现有理数类的代码就会在同项目下的 Rational.cs 文件中。  

Windows 窗体应用程序

题目说明位于 Program.cs 文件中,绘图和逻辑部分代码可能在窗体文件,也可能在 Program.cs 中。  

开发环境:

Visual Studio 2017 + .NET Framework 4.7

代码规范

主要参照 Framework Design Guidelines(本人翻译的 版本) 和 C# 编程指南 ,以及以下几条附加内容。

  1. 单行注释("//")和注释内容之间必须有一个空格。中英文字符之间也需要有一个空格。例如:

    // 这是一行 C# 注释内容。
  2. 类前的修饰符参照如下顺序排列,参照 C# 语言规范

    new
    public/protected/internal/private
    abstract
    sealed
    static
  3. 方法前的修饰符参照如下顺序排列。

    new
    public/protected/internal/private
    static
    virtual
    sealed
    override
    abstract
    extern
    async
  4. 字段前的修饰符按照如下顺序排列。

    new
    public/protected/internal/private
    static
    readonly
    volatile
  5. 属性前的修饰符按如下顺序排列。

    new
    public/protected/internal/private
    static
    virtual
    sealed
    override
    abstract
    extern

    例子:

    public abstract class BubbleSort : Sort
    {
      public static abstract void Sort (IComparable[] a);
      private static override void Show();
    }

相关资料

官方 MOOC 课程:

Part1 https://www.coursera.org/learn/algorithms-part1

Part2 https://www.coursera.org/learn/algorithms-part2

官方资料站 (English):

http://algs4.cs.princeton.edu/

algorithms-4th-edition-in-csharp's People

Contributors

ikesnowy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.