python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Saving calculation results for re-use, while managing memory consumption
I'm caching values that are slow to calculate but are usually needed several times. I have a dictionary that looks something like this:
stored_values = {
hash1: slow_to_calc_value1
hash2: slow...

Antti_M
Votes: 0
Answers: 1
Removing Edges from a Graph
I made a graph with weights. I am trying to remove Node1's weights. I removed the Node1 but it's weights are still there. How can I remove the weights too?
My code:
import networkx as nx
import matplo...

user16726326
Votes: 0
Answers: 1
How to convert a minimum spanning tree to a path/route in Java?
I have a minimum spanning tree in Java.
This is in a Graph class which has a list of Nodes, those Node classes have a list of Edge classes which have a boolean if they are in the MST or not.
Example:
...
Banjer_HD
Votes: 0
Answers: 1
Is there a generic linked list functionality for any structure
Suppose I have two structures in my code like this:
typedef struct Food {
char* name;
int food_id;
int price;
int capacity;
int hall_id;
int day;
int reserved;
int prof...
alilolo
Votes: 0
Answers: 4