SKILL for the Skilled: Part 9, Many Ways to Sum a List
By
Jim Newton
on
May 22, 2013
In the previous postings of SKILL for the Skilled , we've looked at different ways to sum the elements of a list of numbers. In this posting, we'll look at at least one way to NOT sum a list. In my most recent posting , the particular subject
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 8, Many Ways to Sum a List (Closures -- Functions with State)
By
Jim Newton
on
April 23, 2013
In the past several postings to this blog, we've looked at various ways to sum a given list of numbers. In this posting I'll present yet another way to do this. This time the technique will be markedly different than the previous ways, and will
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 7, Many Ways to Sum a List
By
Jim Newton
on
March 25, 2013
In this episode of SKILL for the Skilled I'll introduce a feature of the let primitive that Scheme programmers will find familiar, but other readers may have never seen before. The feature is called named let , and I'll show you how to use it
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 6, Many Ways to Sum a List
By
Jim Newton
on
January 10, 2013
In a previous post I presented sumlist_2b as a function that would sum lists of length 0, 1, or more. (defun sumlist_2b (numbers) (apply plus 0 0 numbers)) Unfortunately sumlist_2b cannot handle extremely long lists. In this posting, I will introduce
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 5, Many Ways to Sum a List
By
Jim Newton
on
November 26, 2012
In the most recent posts of SKILL for the Skilled (see previous post here ) we looked at different ways to sum a given list of numbers. The goal of these articles is not really to help you sum lists better, but rather to use a simple problem to demonstrate
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 4, Many Ways to Sum a List
By
Jim Newton
on
October 15, 2012
In the previous posts SKILL for the Skilled: Many Ways to Sum a List (Parts 1, 2, and 3 ) we looked at several ways to sum a given list of numbers. We ignored the cases of the given list being very long. In this post, we will examine a way to sum the
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 3, Many Ways to Sum a List
By
Jim Newton
on
September 18, 2012
In Part 1 and Part 2 of this series of posts, I showed a couple of ways to sum up a given list of numbers. In this post, I want to show a couple of ways to use recursive functions to do this. Recall the sumlist_1a function In a previous posting the function
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 2, Many Ways to Sum a List
By
Jim Newton
on
September 10, 2012
In the previous posting, SKILL for the Skilled: Many Ways to Sum a List (Part 1 ) , I showed a couple of ways to arithmetically sum up a given list of numbers. In particular, I presenting the following function definition. (defun sumlist_1b (numbers)
Read More »
Comments
(0)
|
 |
SKILL for the Skilled: Part 1, Many Ways to Sum a List
By
Jim Newton
on
September 5, 2012
A while back I presented a one day SKILL++ seminar to a group of beginner and advanced SKILL programmers. One example I showed was Variations on how to sum a list of numbers . This is a good example because the problem itself is easy to understand, so
Read More »
Comments
(6)
|
 |
SKILL for the Skilled: Introduction to Classes -- Part 5
By
Jim Newton
on
February 10, 2012
In the previous SKILL for the Skilled postings, we looked at a pretty good algorithm for solving the Sudoku puzzle. This algorithm is able to find at least one solution of the puzzle if one exists, and is able to detect that no solution exists if that
Read More »
Comments
(0)
|
|
View older posts
»
|