Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 07:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Organise LibreOffice Calc Binary Search?

Discussion on Organise LibreOffice Calc Binary Search? within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2022
Posts: 14
Received Thanks: 0
Organise LibreOffice Calc Binary Search?

Is there a method to organise a binary search in LibreOffice Calc?

To illustrate, suppose I have column A with the numbers 1-16 listed in ascending order: (1,2,3,...); and column B with widget names; and I want to discover a certain widget by searching the numbers in column A. It's simple enough: =SEARCH(number;A1:A16;B1:B16). But suppose I have a list of 1600 sorted numbers and I need the widget name associated with entry 992. To get the necessary value, 'Search' would have to go through 992 iterations. A binary search, a la Java, would reduce it to about 10 iterations. But is that possible?

As far as I can tell, each cell in a spreadsheet is basically independent of all the others, and even organising a binary search "tree" inside a set of cells, as shown in example, is fundamentally independent of all the others. Calc would want to go over each cell and compute its value depending on whatever formula the cell contains - even if the cell is unrelated to the search thread.

Is it feasible to conduct a binary search?

I created a binary search tree within a LibreCalc sheet. Formally, the tree is as follows: I get something like this visually:

where (*) signifies the existence of 'hits' in the cell contents. However, LibreOffice Calc will elaborate all cells - say, A, A1, A2 - even if they are not on the search path, which passes through (B)-(B1).
TonyFinch09 is offline  
Reply


Similar Threads Similar Threads
[Buying] LibreOffice / Word Profi [BIETE] 500 EG
04/05/2020 - elite*gold Trading - 0 Replies
Wie beschrieben, suche ich jemanden der sich mit LibreOffice oder Word sehr gut auskennt und mir was "schneidern" kann. Alles weitere per PN Um diese Bewerbungsvorlage geht es, wer bekommt sie so erstellt? Link: https://www.meine-bewerbungsvorlage.de/bewerbungsv orlagen/no-6-1/
Binary 38801, Latest binary.
03/24/2014 - Metin2 PServer Guides & Strategies - 75 Replies
This is latest binary unpacked. Has R6002 error. Hasn't any modification. https://mega.co.nz/#!BEV0jb6J!MPcP3xCGenYIGQXAzsV PeHiEx4wSCVHYDf9vBKpCPTs
Source for free for all DO Calc +++ and DO RP calc
09/24/2012 - DarkOrbit - 0 Replies
Hello friends as i get to less time to sit on pc , and im not interested to update this tools at all , im making them open source , well they r simple to create and understand, it can be helpful for new beginners , well , the codes are of my DO Calc +++ and DO Rank Points calc , (created in VS10 , language VB.Net 4.0) if u want u can add new gates , and new npc and release them again :). They're only source codes so i suppose no VT needed , DO Calc +++ DO RP calc Thank you ...
[Relese]Tq Binary translation 98% + all Binary Files
07/07/2009 - CO2 Private Server - 20 Replies
#Removed



All times are GMT +1. The time now is 07:21.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.