Git Product home page Git Product logo

algoxy's Introduction

Elementary Functional Algorithms

Edition: $\displaystyle e = \sum \limits _{n=0}^{\infty }{\frac {1}{n!}} = 1 + {\frac {1}{1}}+{\frac {1}{1\cdot 2}}+{\frac {1}{1\cdot 2\cdot 3}}+\cdots = 2.718283$

2023/11

This book presents elementary functional algorithms and data structures with 120 exercises and answers. I wrote the first edition from 2009 to 2017, then rewrote from 2020 to 2023. The second edition in PDF can be downloaded (EN, 中文). The first edition in Chinese (中文) was published in 2017.

Contents

  • Preface
  • Chapter 1, List;
  • Chapter 2, Binary Search Tree;
  • Chapter 3, Insertion sort;
  • Chapter 4, Red-black tree;
  • Chapter 5, AVL tree;
  • Chapter 6, Radix tree, Trie and Prefix Tree;
  • Chapter 7, B-Trees;
  • Chapter 8, Binary Heaps;
  • Chapter 9, Selection sort;
  • Chapter 10, Binomial heap, Fibonacci heap, and pairing heap;
  • Chapter 11, Queue;
  • Chapter 12, Sequence;
  • Chapter 13, Divide and conquer sort;
  • Chapter 14, Search;
  • Appendices and answers

Install

You need TeXLive to build the book in PDF format. We use LuaLaTeX, an extended version of TeX.

Install TeXLive

In Debian/Ubuntu like Linux environment, do NOT install the TeXLive through apt-get. Go to TeXLive official site to download the setup script.

$ wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip
$ unzip install-tl.zip
$ cd install-tl
$ sudo ./install-tl -gui text -repository http://mirror.ctan.org/systems/texlive/tlnet

In Windows, TeXLive provides a gui based installer, in Mac OS X, there's a MacTeX.

Others

You need the GNU make tool, in Debian/Ubuntu like Linux, it can be installed through:

$ sudo apt-get install build-essential

In Windows, you can use WSL or MSYS. In Mac OS X, please install the developer tool from this command line:

$ xcode-select --install

Font setting

The default build supports Linux, Mac OS X, and Windows. You can install additional font (like Noto CJK) typesetting (see prelude.sty). Some system fonts, e.g. STKaiti, were moved to /System/Library/AssetsV2/com_apple_MobileAsset_Font7 in Mac OS X from 2022, you need add the path to the local TeXLive configuration:

sudo tlmgr conf texmf OSFONTDIR /System/Library/AssetsV2/com_apple_MobileAsset_Font7

Build the book PDF

enter the folder contains the book TeX manuscript, run

$ make

This will generate algoxy-en.pdf and algoxy-zh-cn.pdf. If you only need the Chinese version for example, you can run make cn instead. Run make force-cn or make force-en to force build the book.

--

LIU Xinyu

algoxy's People

Contributors

liuxinyu95 avatar sgalal avatar void-elf avatar barak avatar xiaohanyu avatar csukuangfj avatar zzzsyyy avatar anayrat avatar albanie avatar joachimschmidt557 avatar chaddai avatar minungkuo avatar ryanguest avatar tony avatar chenyukang 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.