Questions tagged [bidirectional]

"Bidirectional" refers to any process or structure that works in two directions. Use the tag `bidi` for bidirectional text instead of this tag.

"Bidirectional" is a general concept and can have a lot of meanings:

  • bidirectional text, see
  • bidirectional associations of data
  • bidirectional synchronization
  • bidirectional mapping
  • bidirectional communication
  • bidirectional search algorithms

See also: https://en.wikipedia.org/wiki/Bidirectional

493 questions
4
votes
1 answer

How to fix bidirectional text with numbers?

I got this text and I need to make the number inside of it to be rendered as a number should. I tried several ways to solve it using dir="auto/rtl/ltr" also using unicode-bidi in a css selector and nothing fixed it.
roeygol
  • 4,908
  • 9
  • 51
  • 88
4
votes
1 answer

c++ "bi-directional" observer pattern

I've been reading about how to implement proper MVC in a C++ application and basically came to the point that there are 2 ways of implementing this : observer pattern signal/slot However, in both cases, the exemples I read all follow a…
4
votes
1 answer

Bidirectional A* not finding the shortest path

I'm implementing bidirectional A* algorithm in Python 2.7.12 and testing it on the map of Romania from from Russell and Norvig, Chapter 3. The edges have weights and the aim is to find the shortest path between two nodes. Here is the visualization…
Milos
  • 518
  • 7
  • 22
4
votes
1 answer

Stopping criteria for a bidirectional Dijkstra's (or uniform cost search) algorithm

The stopping criteria, as I understand, for a bidirectional Dijkstra's search (with a single start and terminal state) is as follows Start with a variable mu = infinity Start search from start (s) and terminal states (t) When the two intersect…
max_max_mir
  • 1,494
  • 3
  • 20
  • 36
4
votes
1 answer

How to implement bidirectional encoder in tensorflow?

In Tensorflow, all the encoder-decoder functions (https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/seq2seq.py) use a unidirectional implementation of RNN unit. How can we implement the bidirectional encoder…
user3480922
  • 564
  • 1
  • 10
  • 22
4
votes
2 answers

Smallest ID from an Undirected graph

Working with Oracle 11g, I'm trying to find the smallest ID in a undirected graph of ID pairs. Using the following pairs: create table unique_pairs ( ID1 INT, ID2 INT ); insert all into unique_pairs (ID1,ID2) VALUES ( 1, 2 ) into…
Tim
  • 75
  • 4
4
votes
1 answer

Bidirectional self referential associations

Taking Ryan Bates' asciicast as an example: http://asciicasts.com/episodes/163-self-referential-association He ends with two associations of User :friends :inverse_friends Given that a user would not care who instigated the friendship, you would…
Kevin Monk
  • 1,434
  • 1
  • 16
  • 23
4
votes
2 answers

How to implement a bidirectional relationship in Spring Data Neo4j?

I am modelling a very simple use case, using Spring Data Neo4j: I want to have Persons, which are connected by friendship relations. Here is my code (getters and setters are omitted here): @NodeEntity public class Person { @GraphId private…
manu
  • 43
  • 4
4
votes
1 answer

Parallel A* search in C# - different paths

I'm working on some bidirectional A* algorithm. I'm searching from end to start, and from start to end. When the first thread encounters with a node from other thread(from open or closed list) it stops and draws a path back. But I have the problem…
4
votes
4 answers

Proper way to update bidirectional Many to Many relationship symfony2-doctrine

I did some research, and after reading this and this (and all the related questions) I still can't figure which is the proper way to update a many to many relationship in Symonfy 2 Doctrine. It feels that there should be a very simple way of doing…
Cesc
  • 648
  • 1
  • 11
  • 22
4
votes
4 answers

JavaScript dir method returns empty string for text direction

This returns an empty string when I try to determine the default text direction... alert(document.getElementById('example').dir); I would like to determine if the default text direction is ltr or rtl.
John
  • 1
  • 13
  • 98
  • 177
4
votes
3 answers

How can I set the directionality of different TinyMCE editors based on the direction attribute of the input they replace?

I have a page with multiple textareas to be replaced with TinyMCE. Some of the Textareas take arabic text, some english text. The textareas have the dir-attribute set correctly according to the input they should receive. How can I set the…
fragmentedreality
  • 1,287
  • 9
  • 31
3
votes
1 answer

JPA: one-to-one + self referential + bidirectional

I have an entity called 'Instructions'. Sometimes each Instructions has to keep track Instructions before and after it. For Example I have new instruction B which is continuing from existing instruction A, Instruction B has to aware that Instruction…
blukit
  • 113
  • 2
  • 5
  • 12
3
votes
3 answers

Update bidirectional ManyToMany from both sides

referring the question Saving bidirectional ManyToMany i want to obtain exacltly what accepted answer explain as incorrect: A a1 = new A(); A a2 = new A(); B b = new B(); a1.getB().add(b); b.getA().add(a2); If this state could be persisted, you…
Michele Mariotti
  • 7,372
  • 5
  • 41
  • 73
3
votes
1 answer

Manual Bidirectional torch.nn.RNN Implementation

I'm trying to reimplement the torch.nn.RNN module without C++/CUDA bindings, i.e., using simple tensor operations and associated logic. I have developed the following RNN class and associated testing logic, which can be used to compare output with a…
GloveTree
  • 371
  • 1
  • 6
  • 17