Web Page for the Book:
Discrete Mathematics, A First Course    
by Alexander Stanoyevitch
Contemporary Scientific Press (August 2021)


Brief Table of Contents

Preface
About the Author
Dependency Chart

Chapter 1: Logical Operators
Chapter 2: Logical Quantifiers
Chapter 3: Sets
Chapter 4: Relations and Functions
Chapter 5: Equivalence Relations and Partial Orderings
Chapter 6: Mathematical Induction
Chapter 7: Recursion
Chapter 8: Some Number Theory
Chapter 9: Representations of Integers in Different Bases
Chapter 10: Modular Arithmetic and Congruences
Chapter 11: Fundamental Principles of Counting
Chapter 12: Permutations and Combinations
Chapter 13: Searching and Sorting Algorithms
Chapter 14: Growth Rates of Functions and Complexity of Algorithms
Chapter 15: Graph Concepts and Properties
Chapter 16: Paths, Connectedness, and Distances in Graphs
Chapter 17: Trees
Chapter 18: Graph Traversal Problems

Appendix A: Pseudo Code Dictionary
Appendix B: Randomness and Probability
Appendix C: Answers and Solutions to Most Odd-Numbered Exercise
References
Index of Algorithms
Index

To see a more detailed version of the contents click on this link: Detailed TOC 
To see the book's preface and dependency chart click on this link: Preface 
Click on the following link to download a sample chapter (Chapter 1) that has the answers/solutions appended at the end: Sample Chapter

To see/download sets of computer exercises to accompany the book, click on this link: Computer Exercises 

Programs and Codes--Coming Soon

Below are links to download individual programs for an assortment of algorithms and computer exercises from the book. The programs are written in MATLAB, which is a very user-friendly language, and many comments are included. (NOTE: In MATLAB, comments appear after "%" symbols since anything appearing in a line after this symbol is ignored by MATLAB.)
There are some free MATLAB clone softwares that have many (but not all) of MATLAB's features. Two that are recommend are SageMath and Octave.
Some programs below give reference to the computer exercise to which it corresponds.

statistics in vBulletin