algorithm tag

168 questions


2 answers
108 views
0
How many ways are there to go up the n-step stairs when you decide to go up a prime number of steps, such as going up two steps, going up three steps, going up five steps?

Nice to meet you, I'm a Python beginner.How many ways to go up the n-step stairs when you decide to go up one, two, three, five, etc.? where n is a natural number less than or equal to 50.Rule: Use on...


2 answers
54 views
0
Processing for Bidirectional Lists Using Queues

Solving Aizu Online Judge ALDS1_3_C.Bidirectional Concatenated Lists | Algorithms and Data Structures | Aizu Online Judge I'm worried about an unknown cause error.Here's the source code:#include<st...

2 years ago

7 answers
50 views
0
In what order should I perform the four rules of operation to generate calculation errors/propagate

The problem we have now is an operation that consists only of addition, multiplication, and division.double c,m,d1,d2;/* value each*/doublex=(c*m+(d1+1.0/d2)/2.0);That's the formula.Throw this express...

2 years ago

1 answers
59 views
0
Understanding Mathematical Optimization Algorithms for 0-1 Integer Secondary Planning Problems

I'm learning about algorithms related to mathematical optimization.It seems that the exact solution of the 0-1 integer secondary plan is solved by the branch limiting method.When I look into it, there...

2 years ago

1 answers
47 views
0
Can I use my random number for stream ciphers?

Keep x,y secret as any substitution.Let a be the binary array.I'll take care of this.Is it difficult to guess the next output of output a generated in this way?Also, can I use this random number for s...

2 years ago

1 answers
41 views
0
Please tell me how to check the location of intersection in python.

#Condition—There is no duplication of data.x = {a, b, c}y = {c, b, e}z = {f, b, c}result=x.intersection(y,z)print(result)# {'b', 'c'}Sample Output) Please let me know if there is a recommended format....

2 years ago

4 answers
59 views
0
Find one 32-bit integer that is not in a file that contains 32-bit integers in random order.

Q. Suppose you have a file that contains up to 4 billion 32-bit integers in random order.Find one 32-bit integer that is not in this file. From column 2.1.A, Algorithms and data structures that unders...

2 years ago

1 answers
62 views
0
Learn more about DeepLearning learning data (jpeg, raw) and embedded systems

I am studying deep learning using images.I have a question this time, so I would like to hear your opinion.In general, the learning data used for image recognition on the web reduces the capacity, so ...


1 answers
142 views
0
I'd like to try calculating the intersection of two straight lines with a solve.

When the straight line is parallel to the x-axis or the y-axis, do we need to deal with the case separately?How many cases should I divide it into?Thank you.The following error appears in Example 7.Un...

2 years ago

1 answers
120 views
0
I want to do something ordered hash with ruby.

Ruby wanted to deal with the Map data structure implemented in the tree structure.Are there any classes that meet the following requirements?Do you have any libraries implemented?You can store values ...

« - 10 - »

© 2024 OneMinuteCode. All rights reserved.