# Tagged Questions

An algorithm is a sequence of well-defined steps that defines an abstract solution to a problem. Use this tag when your issue is related to algorithm design.

**0**

votes

**2**answers

37 views

### How to calculate the “distance” between two rectangles?

Given one rectangle and a bunch of images (also rectangles), I need to find the best image to place in it. That would be the one that requires less stretching or shrinking and that covers the area the ...

**1**

vote

**1**answer

58 views

### Correctly Implementing a Linked List in C

I am trying to implement a linked list from scratch in C:#include <stdio.h>#include <stdlib.h>struct node {int data;struct node * next;};void insert(struct node** root, ...

**-2**

votes

**0**answers

16 views

### caluculating maximum input size when complexity and speed is given?

A CPU can perform 10^8 operations a second. You are implementing an O(n^2 log2(n)) algorithm to solve a problem. You want to demonstrate the algorithm to your boss, and ensure that the program runs ...

**0**

votes

**4**answers

47 views

### A simple Increasing Mathematical Algorithm

I actually tried to search this, I'm sure this basic algorithm is everywhere on internet, CS textbooks etc, but I cannot find the right words to search it.What I want from this algorithm to do is ...

**-1**

votes

**0**answers

14 views

### algorithm for automatic search of places for signatures

I am looking for an algorithm for automatic search of places for signatures of dimensions. You can see a pretty simple example on the pic. But if I have a big report from CAD-system, there are lots of ...

**1**

vote

**2**answers

70 views

### Algorithm for fewest logins to online bank

Below are a list of monthly bills. The first number is the day of the month the bill arrives (thus first chance to pay it) and the second number is the due day of the month (last chance to pay it)....

**0**

votes

**3**answers

69 views

### Algorithm to find # elements less than target in a sorted Matrix in O(n)?

We are given a table A of size n by n such that each row and each column is sorted. In other words, for each i,j in {1....n}, and any i' > i, j' > j, we have that A[i, j] < A[i',j] and A[i,j] < ...

**1**

vote

**2**answers

33 views

### Print ASCII table without loop

I just had an interview and I have been asked a question: How would you print all the ASCII table characters without using a loop. The language doesn't matter.

**-3**

votes

**1**answer

17 views

### If it always return the same parameter value, is it still considered as a recursive algorithm?

For example, for:BEGIN Algorithm(n)IF (n EQUALS 0) THENRETURN 1ELSERETURN Algorithm(n+5)/(n+5)END IFENDRETURN Algorithm(n+5)/(n+5) will always be RETURN Algorithm(...

**0**

votes

**0**answers

22 views

### Implementing an efficient decision table algorithm with don't care values

I'm trying to find an algorithm to implement a decision table efficiently,The problem is when you have a "don't care" values.For example consider the following table:Column1 | Column2 | Column3...

**2**

votes

**0**answers

45 views

### Finding the Negative Space in an Image or Cartesian Plane

Please Note - This is a Math question essentially. However, i have also tagged C#as this is the language i am working inSummaryI'm looking for an algorithm (or name thereof) that can find the ...

**-2**

votes

**1**answer

20 views

### A non-empty zero indexed array A consisting of N non negative integers is given

A non-empty zero indexed array A consisting of N non negative integers is given. Its binarian is defined as: binarian(A)=pow2(A[0]) + pow2(A[1]) + ... + pow2(A[N-1]) where pow2(K)=2^k For ...

**2**

votes

**0**answers

34 views

### Prefix based minimum cost

I need the best way to do prefix based operations in c#.I have the following data.prefix price parent_id 1 0.0031 6 1201 0.0021 291201555 0.0061 61204 0.0014 2912045 ...

**-1**

votes

**1**answer

26 views

### Searching for machine learning algorithm for probability prediction - Matlab [on hold]

I have a problem, and I'm not sure if there's a suitable algorithm.Let's say I Have a matrix A mX3. The first two columns are coordinates, and the third is the density of flowers in the area in some ...

**0**

votes

**2**answers

55 views

### how to work with big text in c#?

I am editing some lists that I wrote before with if condition inside a loop but if the text file is more than about 20 MB it says overflow. and if more than 1 MB it loads for ever. For example...