Questions tagged [deterministic]

The system or program exhibits the same behavior in different runs.

The system or program exhibits the same behavior on different runs. This is opposed to .

353 questions
3
votes
2 answers

T-SQL Deterministic INT Cast

Given: SQL Server Table called TEST_TABLE Column in TEST_TABLE called TEST_FIELD of type VARCHAR(50) NOT NULL Row 1: 10YR3/6 Row 2: 10YR3/2 Query: SELECT TEST_FIELD FROM TEST_TABLE WHERE ... Question: In my where condition I need to test for…
Matt
  • 1,441
  • 1
  • 15
  • 29
3
votes
0 answers

How to achieve deterministic builds with Webpack for Firefox extension?

I am currently working on a Firefox extension, but I am facing an issue with webpack bundling. Since Firefox requires me to upload the source code of my addon, the reviewer must be able to create the same build as I did. However, I am encountering a…
Petr Špác
  • 113
  • 2
  • 10
3
votes
1 answer

tbb::parallel_reduce vs tbb::parallel_deterministic_reduce

Threading Building Blocks (TBB) library provides two functions for performing reduction over a range: parallel_reduce, and parallel_deterministic_reduce. Which one of two shall be selected if I want to perform the reduction as fast as possible,…
Fedor
  • 17,146
  • 13
  • 40
  • 131
3
votes
1 answer

Is UUID's hashValue non-deterministic?

Given what I think is an identical Swift UUID, I get different hashValues for it on subsequent runs of the code. Within a single run it's consistent. eg: func UUIDTest() { let uuid = UUID(uuidString: "00000000-0000-0000-0000-000000000001") …
orion elenzil
  • 4,484
  • 3
  • 37
  • 49
3
votes
1 answer

How to execute deterministic code from an untrusted third party safely?

I understand that there are several questions similar to mine, however my problem is a little different and I haven't found a proper answer. I know a simple way to run code from untrusted sources is to create a container, a jail with limited…
Felipe
  • 16,649
  • 11
  • 68
  • 92
3
votes
1 answer

Reinforcement learning deterministic policies worse than non deterministic policies

We have a custom reinforcement learning environment within which we run a PPO agent from stable baselines3 for a multi action selection problem. The agent learns as expected but when we evaluate the learned policy from trained agents the agents…
3
votes
1 answer

Why does deterministic function return unexpected numbers in CONNECT BY LEVEL query?

Test #1: I have a user-defined function and a CONNECT BY LEVEL query: with function custom_function(p_id in number) return number is begin return p_id; end; select custom_function(level) from dual connect by level <= 1000 ID -- …
User1974
  • 276
  • 1
  • 17
  • 63
3
votes
1 answer

How to generate safe RSA keys deterministically using a seed?

How do we use a mnemonic list of words as a seed (like we have been become accustomed using cryptocurrency wallets) to be able to recover a private key in case it gets lost, accidentally erased, or stuck on a broken device? This could be useful for…
3
votes
1 answer

Deterministic/Volatile function in SQL

Let's take a basic deterministic function and a non-deterministic one: ABS(2) NOW() What about the third case of something that may change but we're not sure, such as: SELECT ABS(2) -- deterministic , NOW() -- not ,…
David542
  • 104,438
  • 178
  • 489
  • 842
3
votes
4 answers

Generate valid, deterministic UUIDs for tests

For my ruby testsuite, I need predictable UUIDs. I am aware that UUIDs are by nature random and non-deterministic, and that this is good. But in the testsuite, it would be useful to have UUIDs that can be re-used through fixtures, data-helpers,…
berkes
  • 26,996
  • 27
  • 115
  • 206
3
votes
4 answers

Compiler Optimization of Deterministic Functions

I was reading about Deterministic Execution, which is that for the same input, you have the same output. I was wondering whether any compiler writer has thought about optimizing deterministic functions at runtime. For example, take the factorial…
MetallicPriest
  • 29,191
  • 52
  • 200
  • 356
3
votes
0 answers

Generating deterministic keypair using SubtleCrypto interface of the Web Crypto API

I was wondering if there is a way to generate deterministic asymmetric keypair using some kind of input (password or email), using SubtleCrypto interface of the WebCrypto API. I managed to do this using Cryptico library, but I would like to know is…
3
votes
2 answers

Is it appropriate for a parser DCG to not be deterministic?

I am writing a parser for a query engine. My parser DCG query is not deterministic. I will be using the parser in a relational manner, to both check and synthesize queries. Is it appropriate for a parser DCG to not be deterministic? In code: If I…
Raoul
  • 1,872
  • 3
  • 26
  • 48
3
votes
3 answers

Why does SQL 2005 say this UDF is non-deterministic?

I have the following function: SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[IP4toBIGINT]( @ip4 varchar(15) ) RETURNS bigint WITH SCHEMABINDING AS BEGIN -- oc3 oc2 oc1 oc0 -- 255.255.255.255 -- Declared…
Serguei
  • 2,910
  • 3
  • 24
  • 34
3
votes
2 answers

How can I remove the randomness of a decision tree on sklearn?

I'm trying to create a deterministic decision tree in python, but I've some issue. If I run 2 times my script I get to different Decision Trees, because of the random_state of the algorithm. I tried to fixed random_state( random_state=0) but It's…
Corentin Moreau
  • 111
  • 1
  • 1
  • 12