How to implement recursive KnapSack Algorithm in C# with real life Example – Part2

KnapSack

As we talked about in the last article, we used the recursive approach of KnapSack and we have had 2 drawbacks. It is heavy in running time and it is not possible to track the index of removed items. In this part, we will take the Dynamic part approach which will improve running time and….

How to implement recursive KnapSack Algorithm in C# with real life Example – Part1

KnapSack

Imagine you have a little trolley with a maximum load of 200Kg (20000 gram), and you get one chance to transport rocks of different weights, each has a reward value from location A to location B, and you are not allowed to load more than 200Kg of rocks. You want to pick the most possible….

How to .NET Core 3.0 Wpf application use Dependency Injection

I have recently come across this requirement to a project I am working on that requires Dependency Injection. For this we need to install/add nuget package to our Wpf project: In my case I created a class that I want to use for logging called it LogBase, so in my App.xaml.cs class add following, this….

How to convert AI, EPS, PDF, PS to Image file in C#?

Convert PDF to Image

It is possible to convert AI, EPS, PDF and PS to image file of choice. This can be done different ways. I will show you how to do it using well recognized libraries for free. This requires 3 steps. We need a library that can read AI, EPS, PDF and PS. For this purpose, Download….