Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Algorithm

0 votes
1.3k views
1 answer
    What is the right way to split a string into words ? (string doesn't contain any spaces or punctuation ... to do this conversion dynamically. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm looking for an algorithm that takes 2 strings and will give me back a "factor of similarity". Basically, I ... a bit about the trade-offs? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am looking into an Euler project. Specifically #18. To sum up, the idea is to find the max path from a ... 23 So why start from bottom-up? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    We need to find pair of numbers in an array whose sum is equal to a given value. A = {6,4,5,7,9,1,2} ... O(1) space. And this is NOT homework! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a line that I draw in a window and I let the user drag it around. So, my line is defined by two points: ... by (x1,y1) and (x2,y2)? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    Here is the problem (6.7 ch6 ) from Algorithms book (by Vazirani) that slightly differs from the classical problem ... time should be O(n^2) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm looking for a fast way to compute a 3D Morton number. This site has a magic-number based trick for ... with a minimal number of operations. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I came across this good question, which is similar but not at all same since it talks about Java, which has ... analysis that one should know? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Can someone tell me which data structure supports insert/delete/maximum operation in O(1)? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I've written software in the past that uses a stack to check for balanced equations, but now I'm asked ... full string and move indices inward? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have an ArrayList of objects in Java. The objects have four fields, two of which I'd use to consider ... that is unmarshalled into objects. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    How do I check if a directed graph is acyclic? And how is the algorithm called? I would appreciate a reference. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I was lost on the internet when I discovered this unusual, iterative solution to the towers of Hanoi: for ( ... anyone help me understand it? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Both quicksort and heapsort do in-place sorting. Which is better? What are the applications and cases in which either is preferred? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    The basic algorithm for BFS: set start vertex to visited load it into queue while queue not empty for each ... would be really nice. Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    "There are only two hard problems in Computer Science: cache invalidation and naming things." Phil Karlton Is there ... up being very costly. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I recently attended an interview where I was asked "write a program to find 100 largest numbers out of an ... a better time complexity solution? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I am working on a piece of software which generated a polygon mesh to represent a sphere, and I want to ... idea how to approach scenario #2. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    Lets say I have a routine that scans an entire list of n items 3 times, does a sort based on the size, and then ... that I have it typed out :) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I have a lot of points on the surface of the sphere. How can I calculate the area/spot of the sphere ... but distant after the transform. Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    How can I most efficiently count the number of bits required by an integer (log base 2) in C#? For example: int bits ... log2(100); => bits == 7 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I have an array with arrays in it, where I want to sort the outer arrays based on values in a specific ... sort algorithm to use? QuickSort? _L See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have several data that looks like this: Vector1_elements = T,C,A Vector2_elements = C,G,A Vector3_elements = C,G,T .. ... ; } } } return 0; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm looking for a way to reverse a CRC32 checksum. There are solutions around, but they are either badly written, ... C, Java, etc. Any takers? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Consider this way of solving the Subset sum problem: def subset_summing_to_zero (activities): subsets = {0: [ ... sum algorithm by Pisinger See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I am looking for the solution of following algorithm with minimal time and space complexity. Given two arrays a ... we improve it any further? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I have two rectangles characterized by 4 values each : Left position X, top position Y, width W and height H ... two rectangles is empty or not? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    We have an unsorted sequence of N numbers (1, 2, 3, 4, ... N). We can sort the whole sequence ... form comprehensible to a high-school-student. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...