# Questions tagged [searching]

The tag has no usage guidance.

94 questions
Filter by
Sorted by
Tagged with
99 views

I would like to obtain a "slick" implementation of A*-search algorithm on Graph objects, using the built-in BreadthFirstScan (if that is possible at all). I noticed that BreadthFirstScan is static in ...
321 views

### How to rewrite this function to be faster: Find sub-matrixes of boolean board which imply a given boolean pattern

I have Boolean matrix A (called "board") and Boolean matrix B with smaller dimensions (called "pattern"). I am trying to find sub-matrixes C of A such that C has same dimensions as B, and TableImplies[...
114 views

### Find element in a list matching a pattern (using wildcards)

Somehow, I did not manage to find anything related to that. Suppose, in my Global list of variables, I would like to make a search such that I obtain all the ...
260 views

### Obtaining the position in a list where the i^th element is bigger than the (i+1)^th element

My question is very simple but I am not able to find the optimal solution. What I am trying to do is to have a function that give me the position in a list at which the value at position ...
174 views

### Quickly plotting (number of events) vs. (time) for a very large number of events encoded as pairs of real numbers representing start and end times

I have an array that looks like the following: exampleArray = {{t1,r1},{t2,r2},{t3,r3},{t4,r4},{t5,r5},...}; Where each pair of real numbers $(t_k,r_k)$ ...
103 views

### Find words in a messed up table [duplicate]

This table with a caption that said "First three words you see will come to you in 2021" inspired me to do some digging: Imagine that we have a table with randomly filled letters. How can ...
61 views

### Find position of sublists containing a given element at nth position

I have a list of lists similar to this: L = {{"a", "b", "c"}, {"x", "c", "y"}, {"i", "j", "h"}, {"x", "b", "z"}} Each list within ...
308 views

### WolframConnector - getting credentials for GoogleCustomSearch

I need to fill in the information for the WolframConnector in the panel shown below which is activated by running the command: ...
162 views

### Approximate Nearest Neighbors in Mathematica?

Is there any support for Approximate Nearest Neighbors (ANN) in Mathematica or third-party packages? I'm looking for a good implementation of locality sensitive hashing for applications where ...
54 views

### How to find where in a large expression Power::infy is generated?

Consider the following expression: ...
51 views

### Is there a way to search for a WolframLanguage pattern in Notebook? [duplicate]

Mathematica Notebook has a Search&Replace dialog, which allows to look for particular expressions. But I'd like to be able to find instances of code corresponding to a particular pattern. E.g. if ...
103 views

### Front End - Bug in Edit->Find?

As a beginner I make notes in my notebooks on what I am learning as I go along, and I have also referenced the help files by pasting hyperlinks from them - this seems to break the Find function. Is ...
130 views

### Efficient Search for reverse element in List of Lists

I have a big list AllCycles with contains lists of non-repeating integers (and the first element is always the smallest). I want a function ...
48 views

### How to search for special ResourceFunctions

In Mathematica there exist several very useful Resource functions , for example ResourceFunction["MeanCurvature"] and ...
111 views

### Memoization and finding already calculated DownValue

The problem of plotting an expensive function discussed in this question caught my attention. As an exercies I tried to solve it using memoization as follows ...
69 views

### Searching for symbol except within subexpressions with a particular Head

I would like to write a searcher like FreeQ that looks for a Symbol (or Head) in an ...
47 views

### How to find the primitive Heron triangles with three rational angle-bisectors by MMA?

I'd like to find the primitive Heron triangles with three rational angle-bisectors. In a Chinese book, I saw these primitive Heron triangles with three sides no longer than 1000, but I'm not sure if ...
41 views

### Match an expression that has a descendant pattern

I have a complicated expression in which I have another expression p which, when itās present, I want to match the outer expression and all of its children. I was hoping for something like ...
55 views

### Is there a way to cancel a search in Mathematica?

Is there a way to cancel a word search in Mathematica initiated via the Find and Replace menu?
103 views

### dynamic binary search

Suppose I have a time series of values $v_1, \dotsc, v_n, \dots,$ (think of the data as being generated by repeated function calls, like a Python generator, or being captured in real time) and I want ...
106 views

### Retrieving a Portion of Webpage Code using URLFetch

The URLFetch command is very useful for pulling the entire html source of a given webpage, however, if one wanted to speed up the process, by only requesting a ...
67 views

### How to test if $ā $ is in an expression?

From this answer https://mathematica.stackexchange.com/a/9773/68791 and according to the documentation: FreeQ[list,form] test whether form occurs nowhere in ...
201 views

### Detecting the existence of an element in a subarray with specific properties

If I have an array that looks like this: ...
258 views

### Searching for phrases in a block of text

One could call this a pattern finding question with dictionary (or WolframAlpha) lookup, but let me give you some background first. I have a couple of friends who are trying to improve their English ...
144 views

### Finding strings in Web Code [duplicate]

I haven't found an answer that solves my problem, although I think it's actually a simple one. It seems hard to me because I don't have a lot of experience with string patterns. I have a Web Code ...
232 views

### Search for squares

Could anyone please help me find $a\left(x,y,z\right)$, $b_{i}\left(x,y,x\right),$$c_{i}\left(x,y,z\right)$ and $d\left(x,y,z\right)$ that are sums of squares of polynomials or rational functions such ...
99 views

### Want to display a animation necklace when updating a list of suggestions from an inputfield search

I have an InputField search that provides search suggestions, but I want an animation necklace to be displayed while the search is 'busy'. I would also like this to be done using Dynamic rather than ...
432 views

### Is there a way to search for Arithmetic Progressions in a list?

If you have a list of integers is there a way of searching that list to see if there is a trend of Ax+B in the list? Not using all of the numbers, just seeing what trends like that are embedded in a ...
89 views

### Searching if a directory exists within a folder

I hope this question is not a duplicate, but I could not find any other question which answered my specific question, which is: I have the following folder structure (just an example): samefolder/...
64 views

### What can we do with the Dump contexts? [closed]

So we know from here what the *Dump contexts signify and here Rojo found a very useful goody that involves them: ...
59 views

### Alternative Methods of Using Cumulative Density Functions To Obtain Probabilities

I have a CDF that is generated from the subtraction of two arrays as part of a minimization procedure. A consequence is that events in the simulation can cause the subtracted total to be less than 0: ...
63 views

### Improved Documentation Search By Actual Content

Now by default Mathematica documentation searches keywords section in the Options version of the notebook and the actual text of the notebook. For example here is a snippet from ...
78 views

### How do I use DictionaryLookup to exclude words with certain phrases?

I'm looking to use DictionaryLookup to search the English dictionary for words that don't contain certain strings. For example, I want to exclude ...
77 views

### The nearest object from the array of objects

I need to find the most similar to desired object from the array of objects. In this case ...
40 views

### Problem using Position when using a variable [closed]

So, I tried to use Position to get the Position of the 90% Maximum of a Photodiode Signal. The code works when i directly use the solution of the .9*Max[...] solution, but I want to have it with a ...
444 views

### Using the binary search algorithm in a sorted grid

I want to get a mathematica code for binary search algorithm applied to a sorted grid containing integers. For example, given f[k_,x_]= x^2 + k x + k - 2 where <...
31 views

### Searching in a .txt file for a specific time

I've the following code: Import["hoi1.txt"] And it gives me: "(time,voltage,current,power) (1,10,5,10*5) (2,20,6,20*6) (3,30,7,30*7) (4,40,8,40*8) (...
678 views

### Find if element exists in N-dimensional array

I was wondering if there was a more elegant way of finding whether an element exists in an N-dimensional array. The way I would do it is: ...
37 views

### Find parameter value for which sharply-peaked constrained 3d-integral equals 1

I want to find the value (desirably to high-precision) of the parameter $i$ for which the constrained 3d integration ...
65 views

### Search for certain entries in an expression

I have a list with large expressions. I would like to find certain functions and their derivatives by searching the list. The search outcome should be the functions/derivatives found only, not the ...
53 views

### Looking for specific data in .txt file

I've the following code: Import["test.txt"] And it gives me: 1,10 2,20 3,30 4,40 5,50 6,60 7,70 8,80 9,90 10,100 11,110 12,120 13,130 14,140 15,...
37 views

### DepthFirstScan with a condition [duplicate]

I have a question regarding function DepthFirstScan[]. I have a graph with n nodes represented by its adjacency matrix. I also have a vector of n length. On i-th ...