# ILP Part 11 – Counting Sort

This is the eleventh part of the ILP series. For your convenience you can find other parts in the table of contents in Part 1 – Boolean algebra Last time we implemented a selection sort in ILP. Today we are going to do something similar: we are going to implement counting sort. Introduction As you … Continue reading ILP Part 11 – Counting Sort

# ILP Part 10 – Sort

This is the tenth part of the ILP series. For your convenience you can find other parts in the table of contents in Part 1 – Boolean algebra Today we are going to use conditional operator to implement something similar to selection sort. Let’s begin. Algorithm Selection sort goes as follows: In every iteration we … Continue reading ILP Part 10 – Sort

# ILP Part 9 – Conditional operator

This is the ninth part of the ILP series. For your convenience you can find other parts in the table of contents in Part 1 – Boolean algebra Today we are going to implement conditional operator in ILP. We are basically going to represent if statement in declarative language. Interpretation We will start with explanation … Continue reading ILP Part 9 – Conditional operator

# ILP Part 8 – Multiple and GCD

This is the eighth part of the ILP series. For your convenience you can find other parts in the table of contents in Part 1 – Boolean algebra Today we are going to implement multiple and Greatest Common Divisor (GCD) using ILP. Representations of these functions look very trivial, however, they are in fact a … Continue reading ILP Part 8 – Multiple and GCD

# ILP Part 7 – Multiplication of negative numbers

This is the seventh part of the ILP series. For your convenience you can find other parts in the table of contents in Part 1 – Boolean algebra We have already seen how to multiply variables in ILP. In part 5 we saw how to define minimum and absolute value. Last time we improved our … Continue reading ILP Part 7 – Multiplication of negative numbers