I am experimenting with hierarchical task planning (in python) and I would like to have functions which return lists of tasks. I need to differentiate between alternative paths and sequential tasks. ...

For sequential data models like LinkedList, search algorithms like linear-search and binary-search are well known.
Are their any other search algorithms apart from these two, that work on sequential ...

I want to learn Programming, So I want to start this learning program with studying of the Introduction to algorithms book. I'm familiar with C, C++ and ASM Language a little bit, but I can't write ...

Background
Efficient Trie implementation for unicode strings
I'm writing an app that will likely be run on systems that don't have much space or memory like my pi. Ideally my Trie would be efficient ...

Most drawing programs that I know of (eg. Visio) give shapes handles in order to connect two shapes with a line. These handles allow lines to be "locked on" to the shape so if you move the shape, the ...

I'm writing a toy compiler for fun.
Basically, my problem is that I don't want to clutter the AST with stuff like debug information (symbol tokens, locations of tokens, etc) as well as data that the ...

I've been working in the financial market for a while now and there's a pattern that seems to be all over the fund structure that is intriguing me on how to translate it to the programming world. It ...

I work in a SaaS project in which each user can have a representation of some common data at a given point in time. For the sake of example, let's consider that each user's data is metadata about them ...

I am stuck in a middle of a problem. I have made segment Tree of N elements and performed M updates through lazy propagation
Now I need to store the final array (to some array B of size N) after all ...

We use C# MVC and Angularjs as the primary tools to develop our web applications. We've recently been discussing best practices, with an eye towards revising our development approaches into something ...

In our API we've got a few central datatypes which need to be "decorated" (so to speak) after retrieval from the database with calculated values. The database is accessed through an ORM which follows ...

For a homework assignment, I need to understand how a skip list works.
I've been programming for a little over 2 years now (I know that's not that long in reality), and I have never even heard of a ...

I have a project in C (don't ask why but it needs to be in C), where I need to track multiple pieces of data and commands for different modules. Some actions that the program will take depend on the ...

I am trying to come up with an algorithm to perform academic auditing for college students. I never took an Algorithm course, any help is appreciated.
Input:
Degree requirements,
Additional program ...

I've seen some posts on the StackExchange family of sites talking about std::vector implementations. They all seem to indicate that std::vector is implemented strictly as an array (in practice), and ...

Consider a web service API that returns a complex Json object. Using the stock Python tools for the job, this will read in from the web service as a dict which contains, in turn, a mixture of arrays, ...

Are there any good data structures out there that can be used to represent a molecule?
I was thinking maybe I represent it as a Graph by making every atom a vertex, however, it's common for organic ...

I want to implement a Hash Table using Binary Search Trees to reduce the search complexity in the Separate Chaining process from O(n) (using linked list) to O(log n) (using BST). Can this be done, and ...

I'm in the middle of trying to talk our management into letting us do a portal that sits across the many, many systems that we use. I believe in using the best tool for the job so we have a good ERP, ...

I'm aware there may not be a good solution to this problem. I'm looking for a fast algorithm that determines whether or not a value (let's say an integer) exists in a set of values, however I need the ...

I am preparing to do an upgrade of a fairly large program that is currently written entirely in MS Access, both GUI and data (code and data in separate files). One of the key features of the product ...

I have various objects inside my AST, such as IfBlock, FunctionBlock, LogicExpression, etc. All of those objects share a context, which is basically a hashmap with some variables. It's a very simple ...

I think I'm facing a pretty common issue but cannot remember which solution is the most suitable one.
Let's put it that way: I can, in a, certain, given, language get some events anytime the user is ...

I'm planning to implement a non-fixed-size Fenwick tree. That is, a Fenwick tree that allows interleaving range queries with adding/removing elements.
All implementations and samples I've seen so far ...

(I've added the .NET tags because the data structures are for .NET, and this question should be considered in the context of the conventions for that platform.)
I'm writing a library of immutable and ...