2020欧洲杯时间表

Questions tagged [algorithm]

2020欧洲杯时间表 An algorithm is a sequence of well-defined steps that defines an abstract solution to a problem. Use this tag when your issue is related to algorithm design.

Filter by
Sorted by
Tagged with
0
votes
1answer
11 views

Sorting based on order mentioned in a static map using java

How to sort a list of strings based on order mentioned in static map having item of list as key. List={"AU","I","U", "O", "A1"} Need to sort the above list of string using the below map which has ...
0
votes
0answers
7 views

RSA Encryption/Decryption using JAVA

I'm doing a simple program like this : package rsaexample; import java.io.*; import java.math.BigInteger; import java.security.*; import java.security.spec.InvalidKeySpecException; import java....
0
votes
0answers
8 views

How to find minimum route with 3 variables

I have a problem where given an undirected graph, to go from one node to the other, the edge has 3 variables (time to move from n1 to n2, distance from n1 to n2, cost from n1 to n2). Now we have a ...
0
votes
0answers
8 views

Poisson Disc Sampling Throws Index Out Of Range

here's Poisson Disc Sampling Algorithm realization that I use: using System.Collections.Generic; using UnityEngine; using Random = UnityEngine.Random; namespace Assets.Scripts.Algorithms { ...
0
votes
1answer
16 views

Change node values to their heights in a binary tree

My task is to change the values of nodes to their heights in a binary tree. By the condition of the task, you need to change all the values in 1 pass of the tree, but you can violate this condition ...
-1
votes
0answers
21 views

Should i learn Datastructures and algorithms in Javascript or java? [closed]

First of All, Sorry for my Bad English... I am Student of Bs Software Engineering 3rd Semester.I want to land a job in big companies like Google,Microsoft,Amazon etc.And currently I am working on ...
0
votes
1answer
7 views

Generate pagination numbers with current item in the middle with javascript

Hello I try to generate pagination numbers from given variables: itemsPerPage : How many elements to display per page nbDisplayPage: How many pages display in pagination nbItems : How many items is ...
0
votes
1answer
16 views

How do I connect four 2D grid points with a smooth curve in C# and give the x and y location back at a certain time?

So I'm trying to connect four grid points with x and y values together with a smooth curve. Given a parameter 'time' I want to receive the x and y locations of the point on the curve at that time. I'...
-1
votes
0answers
8 views

how to prove given set of clause unsatisfiable using resolution method {A, ¬A}, {¬A, ¬B, A ∨ B}

The goal is to implement a proof-search algorithm in propositional logic and to run it on small examples. The algorithm is quite different from natural deduction or sequent calculus, and it is called ...
-7
votes
0answers
25 views

Write the program solution for the following graph using data structure and c++ [closed]

Create the program for the following graph. Implement the following functions. 1. addEdge() that takes two vertices as two parameters and creates an Edge between them. 2. adjacentVertices() that ...
0
votes
1answer
20 views

How to find rating in a 1v1 match based on the score?

So I am developing a game where there will be two players both having an initial rating. Now, I want to calculate new rating based on their score. For eg: if player1 scores 50(unitless) and player2 ...
0
votes
1answer
21 views

How to approach the sorting based algorithm/ undertstanding the intuition behind the code?

I have been stuck on an algorithm problem, I need help to make progress with it. The problem statement is as follows. Problem definition: There are 2N people a company is planning to interview. The ...
0
votes
0answers
15 views

Plane Sweep Algorithm - points lying outside the disks

Let D is a set of n disjoint disks and P is a set of n points. How can one design an O(n*log(n)) plane sweep algorithm that reports each point in P lying outside all disks?
0
votes
1answer
10 views

Implementing Breath First Search in Python 3 (how to convert 'Set' to 'Dictionary'

Hi guys I am Start Learning Python. The way my Breath First Search using Dictionary Graph is wrong. I got an error and my code is graphs = { 'a': {'b': 3, 'c': 4, 'd': 7}, 'b': {'c': 1, 'f': ...
1
vote
1answer
23 views

Is the height of a binary tree log2(n)

example tree Lets say we have an array with the length of n=7, the height of the tree should be 2. I wouldn't count the height by the number of rows but connections between them. (I think that ...

15 30 50 per page
1
2 3 4 5
6667