data-structure tag

44 questions


1 answers
467 views
0
Data structure (for stacks and queues)

Data structure (stacks and queues)I would like to ask you something from the perspective of competition programming and practice.C++ and others think that stacks and queues are in the standard library...

1 years ago

1 answers
366 views
0
Understanding Quick Sort Partition Definitions

We are currently running ALDS1_6_B.The answer codes are as follows:I don't understand the meaning of inti=p-1 used in the partition.Why is i doing p-1? Why is p-1 defined?Also, I think x is used as a ...


2 answers
306 views
0
I want to shape the one-dimensional arrangement into a wooden structure.

I would like to have OriginalData with my ID and parent ID in the form of a tree structure.I want to convert inputDatas to the form resultI want to do recursive work, but I can't think of a good way.A...


1 answers
268 views
0
Understanding the Open Address Method Using Double Hash

I am currently running AIZU ONLINE JUDEGE ALDS1_4_C.Among them, I am learning how to open addressing using double hashing.Here's the code for open addressing:#include<stdio.h># include <strin...


1 answers
417 views
0
Multidict Comparison of Two Values in Python

I,p=multidict ({1:9, 2:4, 3:7, 4:3})W,w = multidict ({1:3, 2:5, 3:4, 4:1})I'd like to create a program that compares the two values of and outputs those that meet the requirements.for in I: if p.value...

2 years ago

1 answers
290 views
0
I want you to read the JSON file containing the hierarchical structure.

I tried to load the json file by incorporating picojson into VisualStudio 2012 C++, but I was not able to load the json file successfully.(The data I want most is multiple two-dimensional arrays in th...


1 answers
168 views
0
Regarding graph theory, I would like to calculate an expression that holds information about positional relationships in three-dimensional space in the invariant.

This is a question about graph theory.I would like to think about how to maintain the positional relationship between vertices (nodes) in the variant.As a concrete example, we consider the molecules o...


1 answers
81 views
0
What is Judy array?

It looks like an associative array, but For associative arrays, map I think it's sufficient that it's easily prepared in STL.Why was Judy array born?Compared to map and set, what is the big difference...


1 answers
99 views
0
What is Judy array?

It looks like an associative array, but For associative arrays, map I think it's sufficient that it's easily prepared in STL.Why was Judy array born?Compared to map and set, what is the big difference...


1 answers
100 views
0
gurobi to pyomo conversion

I want to change python from gurobi to pyomo, but I don't know how to do it.from gurobipy import*import pandas aspdimport numpy as npimport csvfrom pyomo.environ import SolverFactoryopt=SolverFactory(...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.