15,793,118 members
Home / Discussions / C#

# C#

 limiting recursion as two interdependent values change c# BillWoodruff27-Aug-23 2:15 BillWoodruff 27-Aug-23 2:15
 Re: limiting recursion as two interdependent values change c# harold aptroot27-Aug-23 14:14 harold aptroot 27-Aug-23 14:14
 Re: limiting recursion as two interdependent values change c# BillWoodruff28-Aug-23 4:41 BillWoodruff 28-Aug-23 4:41
 Re: limiting recursion as two interdependent values change c# harold aptroot28-Aug-23 5:55 harold aptroot 28-Aug-23 5:55
 Re: limiting recursion as two interdependent values change c# Gerry Schmitz28-Aug-23 7:50 Gerry Schmitz 28-Aug-23 7:50
 Re: limiting recursion as two interdependent values change c# BillWoodruff28-Aug-23 12:08 BillWoodruff 28-Aug-23 12:08
 Re: limiting recursion as two interdependent values change c# BillWoodruff28-Aug-23 12:13 BillWoodruff 28-Aug-23 12:13
 Re: limiting recursion as two interdependent values change c# harold aptroot28-Aug-23 13:36 harold aptroot 28-Aug-23 13:36
 Your data structure is really a sparse matrix, right? It's a bit hidden behind the domain-specific terminology, but in the end it's a weighted graph represented as a sparse matrix. There's nothing wrong with that, it's a standard way to manipulate weighted (and even unweighted) graphs in both programming and mathematics. BillWoodruff wrote:How can you have "reciprocity" and "invariant."Well I mean, there is some invariant on this matrix that you are maintaining, right? And it has something to do with the reciprocal edge (you called it that, I'm just going with it). If a weight somewhere is changed, then its "mirror image" (the reverse edge) needs to change in some way to restore that invariant. I didn't really get how it needs to be changed specifically (or what the invariant is that is being maintained by that change), but I suppose that's largely an implementation detail that doesn't need to affect the overall architecture. So essentially my suggestion is: make the overall matrix responsible for maintaining that invariant, not the edges. And so, the edges would not try to "fix themselves" in response to an event, you would tell the matrix to change an edge weight and it would directly do so in a way that maintains the invariant (by changing the weight of an edge and the corresponding reverse edge), with no events involved (of course you can still raise them, but that wouldn't be the mechanism for maintaining the invariant).
 Re: limiting recursion as two interdependent values change c# BillWoodruff28-Aug-23 23:48 BillWoodruff 28-Aug-23 23:48
 C# error when I try to run Member 1607362720-Aug-23 19:22 Member 16073627 20-Aug-23 19:22
 Re: C# error when I try to run OriginalGriff20-Aug-23 19:27 OriginalGriff 20-Aug-23 19:27
 Re: C# error when I try to run Richard Deeming20-Aug-23 22:01 Richard Deeming 20-Aug-23 22:01
 HikVision Biometrics Icanus Tuiloma20-Aug-23 15:48 Icanus Tuiloma 20-Aug-23 15:48
 Re: HikVision Biometrics Dave Kreskowiak20-Aug-23 18:16 Dave Kreskowiak 20-Aug-23 18:16
 Re: HikVision Biometrics Icanus Tuiloma20-Aug-23 19:11 Icanus Tuiloma 20-Aug-23 19:11
 Format integer with ToString("D2") in SqLite Edilson Lemos 202118-Aug-23 17:21 Edilson Lemos 2021 18-Aug-23 17:21
 Re: Format integer with ToString("D2") in SqLite Dave Kreskowiak18-Aug-23 17:52 Dave Kreskowiak 18-Aug-23 17:52
 Re: Format integer with ToString("D2") in SqLite Edilson Lemos 202118-Aug-23 18:36 Edilson Lemos 2021 18-Aug-23 18:36
 Re: Format integer with ToString("D2") in SqLite OriginalGriff18-Aug-23 19:31 OriginalGriff 18-Aug-23 19:31
 File csproj : how to create a nuget package with msbuild and with package dependencies ? chris_brabant16-Aug-23 2:42 chris_brabant 16-Aug-23 2:42
 Re: File csproj : how to create a nuget package with msbuild and with package dependencies ? Richard Deeming16-Aug-23 4:11 Richard Deeming 16-Aug-23 4:11
 Re: File csproj : how to create a nuget package with msbuild and with package dependencies ? chris_brabant16-Aug-23 5:00 chris_brabant 16-Aug-23 5:00
 Re: File csproj : how to create a nuget package with msbuild and with package dependencies ? Richard Deeming16-Aug-23 5:14 Richard Deeming 16-Aug-23 5:14
 Re: File csproj : how to create a nuget package with msbuild and with package dependencies ? chris_brabant16-Aug-23 5:48 chris_brabant 16-Aug-23 5:48
 Re: File csproj : how to create a nuget package with msbuild and with package dependencies ? Richard Deeming16-Aug-23 22:14 Richard Deeming 16-Aug-23 22:14
 Last Visit: 31-Dec-99 19:00     Last Update: 2-Dec-23 18:27 Refresh ᐊ Prev1...567891011121314 Next ᐅ