Questions tagged [symmetric]

is used in its general meaning, so you are encouraged to use one or more tags in addition to this tag, to describe your case better.

An example of Symmetric would be a Symmetric Key, which is used in both the sides of an algorithm in cryptography.

170 questions
1
vote
1 answer

Symmetric ds skipping batches issue

I'm facing an Skipping batches issues with my symmetric ds setup,don't know the exact reason behind this because its not having the same pattern but when this event happened the data getting mismatched/missing between server & client…
1
vote
3 answers

Recursive function to check if a matrix is symmetric

I have an assignment to implementthe matrix class and a method that checks if the matrix is symmetric. The method has to be recursive and then I have to calculate its complexity. After I have to transform the recursive function to its iterative…
1
vote
1 answer

Racket: How can I fix my code so that it will return all the flipped pairs that is missing?

This function should return the symmetric closure of L. Examples: (Symmetric-Closure'((a a) (a b) (b a) (b c) (c b))) ---> '((a a) (a b) (b a) (b c) (c b)) (Symmetric-Closure'((a a) (a b) (a c))) ---> '((a a) (a b) (a c) (b a)(c…
1
vote
2 answers

Does HTTPS use Asymmetric or Symmetric encryption?

I have searched all this morning but I've found websites where it is said that data is sent through an asymmetric encryption using the TLS protocol. Then I found the contrary. Please can you tell me which is true? Thanks. And does anyone know a…
1
vote
1 answer

Symmetrical matrix with numpy

from random import * N = 100 gamma = 0.7 connect = zeros((N,N)) for i in range(N): for j in range(i+1): if random() < gamma: connect[i,j] = 1 connect[j,i] = 1 else: connect[i,j] = 0 …
Aurelio
  • 25
  • 3
1
vote
1 answer

How to manually determine if a matrix is symmetric?

I tried to test if the matrix is symmetric, but this doesn't work. > View(new.function) > View(new.function) > new.function <- function(a){ + for(i in 1:nrow(a)){ + for(j in 1:ncol(a)){ + if(a==t(a)){ + …
jay
  • 99
  • 6
1
vote
1 answer

How to create a symmetric matrix in R counting how often two columns have the same values?

Suppose I have a dataframe like this: ID sp1 sp2 sp3 1 NA 1 1 2 0 0 1 3 1 NA 0 4 1 1 1 Here is what I wanted to get: ID 1 2 3 4 1 2 1 0 2 2 1 1 0 1 3 0 0 1 1 4 2 1 1 3 which shows the number of times two columns have the…
YannZ
  • 99
  • 1
  • 6
1
vote
2 answers

Divide integer into an "as symmetric array as possible" in python3

I'm trying to split a Integer into an "as symmetric array as possible" in python3 but just doesn't seem to get it right. The desired input/output can be described by this Data Pattern Table. # data pattern TABLE # INPUT (int) => OUTPUT (len(array),…
Grebtsew
  • 192
  • 5
  • 13
1
vote
2 answers

Calculate if two lines are symmetrical

I'm developing an app to check if a draw is symmetric or not. All the users line are stored into an ArrayList composed by a list of points, structured as well: private ArrayList>> segments = new ArrayList<>(); This is…
Babbara
  • 448
  • 1
  • 6
  • 21
1
vote
1 answer

Is there a way to make jasypt to have custom encryption in Springboot

I need to Encrypt the Database password that is there in our bootstrap.yml file and for this we decided to go with - jasypt I am using jasypt 1.18 version with spring boot 1.5.13 release. The latest version of jasypt-spring-boot:2.1.1 does not…
nee2610
  • 128
  • 1
  • 9
1
vote
1 answer

Why is the Laplacian Matrix not symmetric?

I came across the why-laplacian-matrix-need-normalization-and-how-come-the-sqrt-of-degree-matrix. I have a weighted adjacency matrix adjm (file data.csv on Google Drive). The matrix adjm is non-symmetric. I have built the directed graph graph and…
Nick
  • 1,086
  • 7
  • 21
1
vote
2 answers

Julia or R: create symmetric matrix by minimum of off-diagonal elements

Here is a complex problem. I have an arbitrary square matrix in R (can be in Julia as well), for example > set.seed(420) > A <- matrix(runif(16),nrow = 4,byrow = T) > A [,1] [,2] [,3] [,4] [1,] 0.6055390 0.9702770 0.1744545…
coolsv
  • 781
  • 5
  • 16
1
vote
5 answers

Change elements in one matrix based on positions given by another matrix in R

Let's say I have a symmetric matrix A, for example: > A <- matrix(runif(16),nrow = 4,byrow = T) > ind <- lower.tri(A) > A[ind] <- t(A)[ind] > A [,1] [,2] [,3] [,4] [1,] 0.4212778 0.6874073 0.1551896 0.46757640 [2,]…
coolsv
  • 781
  • 5
  • 16
1
vote
1 answer

Brute Force attack on Symmetric Cryptography

If I have a specific key length say 4 and a given ciphertext, how do I use str.matches("^[a-zA-Z0-9\\-#\\.\\!\\;\\,\\(\\)\\/%&\\s]*$")) to find a key in order to get the plaintext. So far I have a class for generating strings of a fixed size: class…
Lee
  • 11
  • 1
1
vote
1 answer

Routine For Creating A Symmetric Matrix From A Given Vector In C

Lets say I have the vector x = [x0, x1, x2, x3] = [0, 2, 3, 1]. I want to create a symmetric matrix from x. Ie a symmetric matrix that has x as the first row and first column, with x0 as the diagonal. In other words, I want a matrix X like…
The Dude
  • 661
  • 2
  • 11
  • 20