T
T
TrumpDonald2019-06-19 20:02:13
Algorithms
TrumpDonald, 2019-06-19 20:02:13

How is a sequence of probes a permutation in double hashing?

Hello, I can't understand. Let's say there is a double hashing h(k,i)=(h1(k)+i*h2(k)) mod n. There is a statement that the sequence of samples corresponding to the key k is a permutation of the set {0,1,...,n-1} if and only if h2(k) is relatively prime to n. Please give at least 1 example to make the statement true.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
L
longclaps, 2019-06-19
@TrumpDonald

What's easier. Let n==2^t, this is usually the case. Then h2(k)==2*k+1 is an odd number that is always relatively prime to n.
Plug in and check.

0
0X12eb, 2017-08-11
@0X12eb

I can only note the beginning of acquaintance with this area (then everything started by itself)
As a hobby, I mastered 3dsMax back in 2008 using these magazines - Render Magazines
I use this stack as a hobby, if you grow in this area, then in a good workplace, the skill will grow order faster.

Y
Yaroslav Sivakov, 2017-08-11
@yar3333

An excellent, in my opinion, course on 3D modeling on Blender: https://www.youtube.com/watch?v=HSGz9z9nIBk&list=P...

O
oper7sot, 2017-09-08
@oper7sot

You need to start by downloading the 3D editor! preferably in Russian :)
and perform all sorts of manipulations with ready-made models

C
capweb, 2020-04-14
@capweb

I recommend the Belarusian game design school Polygon. 3d modeling course https://polygon.by/course/3d-artist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question