Relative Content

Tag Archive for algorithm

Can you strip a matrix in O(n^2) time?

I have an n by n binary matrix and three operations. I can zero out a row or column that has exactly one solitary one in it and I can zero out a row if it has an exact copy. How can I apply these operations repeatedly until none of them can be applied in O(n^2) time?

What is Algorithm?

An algorithm is a step-by-step set of instructions designed to perform a specific task or solve a particular problem. It is a fundamental concept in computer science and mathematics, used to guide computers and humans in problem-solving and decision-making processes.
give me some more information

Algorithm to calculate number of buckets of different sizes required to minimise wastage

I am currently working on a problem at work where we have paint buckets of different sizes and we need to create a calculator that given a required quantity of paint it will calculate the required quantity of each bucket size minimising wastage. It needs to use the biggest size possible but minimising wastage. I am sure this sort of algorithm has a name but I can’t find it. I found the Knapsack Algorithm and the Coin Change Algorithm but they are not exactly the same.
Any idea about the name of this algorithm? It seems a fairly generic problem. I am sure an algorithm exists already.