algorithm tag

168 questions


1 answers
414 views
0
I wonder if it's irrelevant to use BFS!

The questions are as follows!There is an ice mold of N×M size. The part with the hole is marked as 0 and the part with the partition is marked as 1.If the perforated parts are attached up, down, left,...

1 years ago

1 answers
364 views
0
What's the downside of TimSort?

I studied Tim Sort to measure the time complexity during the corte, and I'm organizing this.I was organizing when and why I use this. But I can't find anything to write about the shortcomings, and I c...

1 years ago

1 answers
280 views
0
I implemented the three-way AI using AlphaBeta method, but it doesn't work the same way as MiniMax method.

We implement AI in three-in-a-row using AlphaBeta method.The triplet arrangement is based on the following site and is implemented using the Minimax method, but we have changed it to AlphaBeta method....

1 years ago

1 answers
457 views
0
list a monotonically increasing sequence over a range

Is there a way to enumerate a sequence that meets the following conditions?A positive integer column of length N1<=A_1<=A_2<=...=A_N<=M1<=N,M<=10By using the recursive function, I wa...

1 years ago

1 answers
377 views
0
I want to create a matrix class object that meets certain conditions.

I would like to create a matrix class object in C++ that meets the following conditions:The number of columns for the object is SObjects have 0 or 1 as componentsThe sum of elements in each row of obj...

1 years ago

1 answers
387 views
0
I want to create a matrix class object that meets certain conditions.

I would like to create a matrix class object in C++ that meets the following conditions:The number of columns for the object is SObjects have 0 or 1 as componentsThe sum of elements in each row of obj...

1 years ago

1 answers
420 views
0
What to do when the tabulation method in the table and the tabulation method displayed on the screen are different in Java?

Hello.I'm designing a Java interface for my business.I have a question because I don't know what to do.We are designing an interface that takes records from the table, edits the output, and returns th...

1 years ago

1 answers
339 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 ...


1 answers
254 views
0
Understanding the Longest Path Problem and the Bellmanford Act

We know that the longest route problem for non-negative weighted effective graphs is difficult to NP.However, if you solve the shortest path problem using the Bellmanford method, you will inevitably s...


1 answers
431 views
0
I would like to know the algorithm to select the best breakdown of the set products.

I have a request to purchase the product from a customer.I'd like to change that product to the best set of products and buy it at the lowest price.Please let me know if you have a good algorithm.Exam...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.