Showing posts with label discrete math. Show all posts
Showing posts with label discrete math. Show all posts

Thursday, October 5, 2023

Applied Discrete Structures now available on LibreTexts!

Without having to ask me, the LibreTexts project has adopted Applied Discrete Structures (ADS) to their library!  Don't get me wrong - the point to making ADS an OER project is to make it available to as many instructors and students as possible at no cost. So I'm delighted that they've added the project.  

I was unfamiliar with LibreTexts until now. Understandable because its a relatively new project.  It started with Chemistry content but has since branched in to other sciences, mathematics, engineering and more.

For a good introduction to LibreTexts check out this video from LibreFest 2023

Applied Discrete Structures is still available in other form factors at https://discretemath.org




Saturday, August 12, 2023

New: Applied Discrete Structures is on Runestone Acadamy


Applied Discrete Structures is now available on
Runestone Academy. To access it, go to the Runestone Library Mathematics list. 


 At this point the book doesn’t have reading questions so the fully capabilities of Runestone are  not being fully utilized.  By 2024, I’m hoping to have added a pool of reading questions for most sections. This will allow students to test their reading comprehension in a low-stakes environment. Instructors can incentivize students’ reading by grading completion of reading assignments. Currently, a record is only kept of which sections of the book have been opened by each student. 


Applied Discrete Structures is still available in other form factors at https://discretemath.org



Monday, September 26, 2022

Does learning about quantifiers help students understand limits?


 A recent thread on the MAA member web site discussed how limits should be taught in Calculus I/II. One comment was that students who take a discrete math course, where quantifiers are discussed, might better understand the definition of a limit.  What follows is a possible example that could be added to our section on quantifiers. Background:  I taught a calculus workshop for mostly middle school teachers several years ago and I recall the most spirited discussion being around the idea that $0.999…  = 1$.

Example: What does it mean that 0.999… = 1?  The ellipsis (…) implies that there are an infinite number of 9’s on the left of the equals sign.  After many years of struggling with what this means, mathematicians have come up with a universally accepted interpretation involving quantifiers.  It is that

$$(\forall \epsilon)_{\mathbb{R}^+} ((\exists N)_{\mathbb{P}})(n\geq N \Rightarrow  |1- 0.\underbrace{99..9}_{n\,9’s}| \lt \epsilon))$$

In calculus, the symbol $\epsilon$ is usually reserved for small positive real numbers. Let’s pick a value for $\epsilon$ and peel the universal quantifier off the statement above.  Let’s try  $\epsilon$ equal to $\frac{1}{2^{10}}=\frac{1}{1024}$.  In addition we note that $0.\underbrace{99..9}_{n\,9’s}=1-\frac{1}{10^n}$.  With our choice of $\epsilon$ we get 

$$ (\exists N)_{\mathbb{P}}(n\geq N \Rightarrow  |1- 0.\underbrace{99..9}_{n\,9’s}| \lt \frac{1}{1024}) $$
or

$$(\exists N)_{\mathbb{P}}(n\geq N \Rightarrow \frac{1}{10^n} \lt \frac{1}{1024}) $$

This last statement is true - one value of  $N$ that would work is $11$. You just have to convince yourself that any positive value of $\epsilon$, no matter how small, will produce a true statement.  If you see that, you’ve convinced yourself that $0.999…  = 1$!

Tuesday, April 23, 2013

A sphere in binary 11-space

In my discrete math class this week, did an example of a code that encodes three bits to eleven bits and can correct all two-bit errors.   This particular code was not meant to be particularly optimal, but for one particular example I ran with 3,000,000 bits, the number of errors was roughly 1/4 of what was predicted by the probabilities, given that two bit errors can be corrected.  There were 38 failures instead of a predicted 155.   This is no mystery since the packing of spheres in {0,1}^11 wasn't expected to be all that tight, and three bit errors can often be corrected.  

The encoding function is 
         (a, b, c) ----> (a, b, c, a + b, a + c, b + c, a + b + c, a + b, a + c, b + c, a + b + c)


To get an visualize the situation, I create the graph below.   The vertices are some of the points in the code space: the sphere of radius three centered around one of the code words.   The color coding is
  • Yellow:   the code word - I used the zero word, but the space is symmetric everywhere.
  • Blue:   points one unit from the code word
  • Green:  points two units from the code word
  • Brown:  points three units from the code word and further that three units from all other code words.
  • Red:  points three units from the code word but also three units from another code word.
So all but the Red points, if received, will correct to the most likely transmitted word.   Only the Red ones are questionable and there is no most likely correction.

Monday, April 22, 2013

The Economic Impact of Applied Discrete Structures.

I've been starting to collect data to document the economic impact of Applied Discrete Structures.  In a class using our text, the cost to a student ranges from $0, if  he/she uses the pdf, to $30 a hard copy of purchased.   A rough estimate of the percentage students that buy a hard copy is 15%.   Prior to using our text at UMass Lowell, we used a text that cost $160 new, and around $120 used.   So a very conservative estimate of the impact on student costs would be $120 times the number of students enrolled in discrete math classes using our book.  Here are the estimated student savings, also with very conservative estimates for enrollments starting Fall 2011 through the Spring 2013 semester:

UMass Lowell:   300 students have saved a collective $36,000
Other Colleges:   75  students have saved a collective $9,000

That's $45,000 that students have saved in the first couple of years that the book has been available.   We're hoping that with increased exposure on open source textbook websites, we can dramatically increase the impact outside of UMass Lowell.

So far we are listed on the following sites:



Tuesday, March 12, 2013

Version 2.0 is now available

Version 2.0 of Applied Discrete Structures is now available both in pdf form and printed, from lulu.com.

Here are a few notes on the new version:
•  The full version is now 494 pages, with two blank pages added for the lulu version.
•  The pdf's are still absolutely free!
•  The prices of the full printed version and Part 2 (Chapters 11-16) are the same as before.  The price of Part 1 (Chapters 1-10) has dropped by $1.
•  The most significant change in content is in the chapter on Relations, which has been reorganized.  It's logical flow is a bit smoother now, thanks to suggestions from Dan Klain.  Other chapters where a few alterations have been made:  Chapters 10 and 13.
•  The pdf's now have links to the first page in each chapter in the table of contents.


For pdf copies:   http://faculty.uml.edu/klevasseur/ads2/
For printed copied:  lulu.com

Friday, February 15, 2013

Applied Discrete Structures: a three year status report

The impetus for Applied Discrete Structure was my attendance at a Sage Day at the Clay Math Institute in December 2009.   Al Doerr and I got our copyright back from Pearson a few months after that and so we are just about three years into this project.

Probably the most important milestone was March of last year, when we assembled a complete version of the book and made it available for free on our web site and also for a reasonable price ($30) on lulu.com.

In the past year there have been two other milestones:

  • We are now listed on the American Math Institute's Open Textbook Initiative site.
  • We have several outside adoptions: classes at the University of the Puget Sound, Grinnell College, Casper College and Luzurne Community College are all using our book.
March seems to be a good time to update the book in anticipation of fall adoptions, so I've been working V2 of the full pdf.  It's really just about ready, but I'm going to allow a bit more time pick up more errata from V1.  Particular thanks to students at Luzurne CC, who have found several typos. 


Thursday, November 15, 2012

Now listed with the American Institute of Mathematics

Applied Discrete Structures is now listed among the Approved Textbooks by the American Institute of Mathematics as part of their Open Textbook Initiative.

The American Institute of Mathematics (AIM) seeks to encourage the adoption of open source mathematics textbooks. The AIM Editorial Board has developed evaluation criteria to identify open source books that are suitable for use in traditional university courses. The Editorial Board maintains a list of Approved Textbooks which have been judged to meet these criteria.


If you're looking for a text for a college/university mathematics course, consider books on this list!

Wednesday, November 14, 2012

Sage Trees

New Sage Worksheet: Trees

I was updating a few things in Chapter 10, Trees, and took the opportunity to do a few things with Sage. ADS2_Trees.sws
  • Cataloging trees by degree sequence.
  • Finding a minimal spanning tree using Kruskal's algorithm.
  • The binary tree sorting algorithm
Actually, the last item only uses Python.