algorithm tag

168 questions


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 answers
106 views
0
solve the knapsack problem by dynamic planning

I'd like to solve the knapsack problem using dynamic planning, but somehow it'sWhy?I tried writing the code below to solve it as 1 origin, but it was not correct.In many explanations, the transition o...


2 answers
68 views
0
How do I speed up the recursive process with Python?

The following are the issues.atcorder270 Problem 3https://atcoder.jp/contests/abc270/tasks/abc270_cAfter submitting it, the test of 10 questions will run out of time.I am currently working on Python a...

2 years ago

1 answers
52 views
0
What algorithm shows the distribution of commodity prices on the sidebar when I search Rakuten Market?

When I searched Rakuten Market, what algorithm shows the distribution of commodity prices on the sidebar?What comes to mind is using SQL's GROUP BY, but Hundreds of thousands of hits are still display...

2 years ago

3 answers
89 views
0
a program that outputs the day of the week

I would like you to teach me how to write a program to know the day of the week.This is what the example should look like.$./a.outYear: 1999Month: 10Day: 7October 7th, 1999 is Thursday.

2 years ago

2 answers
102 views
0
Understanding the Definition of Weighted Levenstein Distance

I'm asking because I don't really understand the definition of weighted Levenstein distance, which measures the distance between strings.The normal Levenstein distance is the minimum number of inserti...


1 answers
51 views
0
Think of a must-win method for using only ✖ at the same time on three boards.

In this game, there is a way to win first.Browse Youtube: Numberphile 3 board tactiteHowever, it is not easy to find a winning method that can be dropped into programming.The goal is to create pseudo-...

2 years ago

2 answers
50 views
0
multiplication by Boolean algebra?

Computer-specific shift operations and logical production.How can multiplication be expressed in bit operations such as OR?

2 years ago

1 answers
51 views
0
Is it possible to make a ranking at the same time as quick sort?

A, 10,50,32B, 30, 60, 21C,15,45,61I would like to read the csv file and output the dat and csv file that meets the following conditions without changing the order of A to C.The reason I don't want to ...

2 years ago

2 answers
50 views
0
How to determine the quick sort pivot

I'm an information studentI think it's very important to decide on pivot in quick sort, but what are the advantages of each?①Choose three from the array and set the median to pivot.②Compare the first ...

2 years ago
« - 6 - »

© 2024 OneMinuteCode. All rights reserved.