About 22,900,000 results
Open links in new tab
  1. algorithm - Calculate distance between two latitude-longitude …

    Aug 26, 2008 · How do I calculate the distance between two points specified by latitude and longitude? For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to unde...

  2. How does a 'diff' algorithm work, e.g. in VCDIFF and DiffMerge?

    The algorithm was independently discovered as described in "Algorithms for Approximate String Matching", E. Ukkonen, `Information and Control' Vol. 64, 1985, pp. 100-118. Reading the papers then looking at the source code for an implementation should be …

  3. algorithm - What is the difference between depth and height in a …

    Dec 1, 2023 · This is a simple question from algorithms theory. The difference between them is that in one case you count number of nodes and in other number of edges on the shortest path between root and concrete

  4. algorithm - Peak signal detection in realtime timeseries data

    Robust peak detection algorithm (using z-scores) I came up with an algorithm that works very well for these types of datasets. It is based on the principle of dispersion: if a new datapoint is a given x number of standard deviations away from a moving mean, the algorithm gives a signal. The algorithm is very robust because it constructs a separate moving mean and deviation, such …

  5. algorithm - Array remove duplicate elements - Stack Overflow

    Jul 28, 2010 · I have an unsorted array, what is the best method to remove all the duplicates of an element if present? e.g: a[1,5,2,6,8,9,1,1,10,3,2,4,1,3,11,3] so after that operation the array should look li...

  6. kafka failed authentication due to: SSL handshake failed

    Feb 27, 2019 · From Kafka version 2.0.0 onwards, hostname verification of servers is enabled by default for client connections as well as inter-broker connections. by adding this line, you assign an empty string for ssl.endpoint.identification.algorithm.

  7. Big O, how do you calculate/approximate it? - Stack Overflow

    Most people with a degree in CS will certainly know what Big O stands for. It helps us to measure how well an algorithm scales. But I'm curious, how do you calculate or approximate the complexity...

  8. jwt - RS256 vs HS256: What's the difference? - Stack Overflow

    Aug 31, 2016 · Both choices refer to what algorithm the identity provider uses to sign the JWT. Signing is a cryptographic operation that generates a "signature" (part of the JWT) that the recipient of the token can validate to ensure that the token has not been tampered with. RS256 (RSA Signature with SHA-256) is an asymmetric algorithm, and it uses a public/private key …

  9. How to calculate moving average without keeping the count and …

    Sep 28, 2012 · I am trying to find a way to calculate a moving cumulative average without storing the count and total data that is received so far. I came up with two algorithms but both need to store the count:...

  10. algorithm - Looping in a spiral - Stack Overflow

    Dec 30, 2008 · A friend was in need of an algorithm that would let him loop through the elements of an NxM matrix (N and M are odd). I came up with a solution, but I wanted to see if my fellow SO'ers could come u...