B4A Question Classes are soon coming... - Erel    Jun 4, 2012   (2 reactions)   tags: Classes End If Return True End Sub 2. Binary tree implementation (sorting algorithm): 'Main...) Dim root As TreeNode root.Initialize For i = 1 To 1000 root.AddValue(Rnd(0, 999999)) Next root.Print End Sub '***************************** 'TreeNode Class module Sub Class_Globals Private value As Int Private left As TreeNode Private right As TreeNode End Sub Public Sub Initialize value = -1 End Sub Public Sub AddValue(v As Int) Dim n As TreeNode If... B4J Tutorial Getting Started Examples - Erel    Feb 7, 2017   (20 reactions)   tags: getting started b4j , binary tree, merge sort and selection sort. You can download these examples here: www.b4x.com... B4A Question 👩🏫 👨🏫 Examples for teachers - Algorithms - Erel    May 19, 2020   (39 reactions)
ConstructSubset
Linked List (data structure)
Stack (data structure)
Hash Table / Map (data structure)
Binary Search Tree (data structure)
The examples in this thread are shared in the public domain. You can do... B4A Tutorial Sorting algorithms - Teaching with Basic4android - Erel    Dec 21, 2016   (1 reaction) of the following sorting algorithms: bubble sort, selection sort, quick sort, merge sort and binary tree sort...) Activity.AddMenuItem("Binary Tree Sort", "mnuBinaryTreeSort") End Sub Sub... " ms", False) DisplayData End Sub Sub mnuBinaryTreeSort_Click Dim s As Long...) ToastMessageShow("Binary Tree Sort took: " & (DateTime.Now - s) & " ms"... Process_Globals Type TreeElement(Value As Int, Left As TreeElement, Right As TreeElement) End Sub Sub... B4A Library [B4X] Trie based search dialog - Erel    Sep 28, 2021   (23 reactions) the tree using binary search. The items list is expected to be sorted in ascending order. This allows to build the tree very fast. It takes about 45 milliseconds to build a tree made of 37,500 items on my...119022 This started as an educational project but it can be useful in some cases. Trie is an interesting data structure that allows fast lookup of prefix matches. It is a tree of prefixes. 119024..., a list of child nodes and a list of full values. The tree depth is configurable and in most cases... Spanish Árboles Binarios. - josejad (first post)    Jul 2, 2023 Hola Carlos: No los he usado nunca en B4A (y creo que desde que los vi en la carrera, jeje), pero sí recuerdo haber visto algunos ejemplos en el foro, que si haces una búsqueda aparecen, hay una pequeña clase (Class) de Erel y algunos ejemplos básicos https://www.b4x.com/android/forum/pages/results/?query=binary+tree... Other JsonTree - Tool to help with JSON parsing (B4A / B4J) - Erel    Apr 24, 2022   (42 reactions)   tags: JsonTree, Online http://www.b4x.com/basic4android/images/SS-2013-12-23_10.11.49.png JsonTree is a tool that helps developers to parse and understand JSON strings. It shows the data structure in a TreeView and it also prints the code (B4J / B4A) required in order to extract the data from the string. Note that variables in the generated code are based on the JSON fields. It may produce invalid identifiers... can be downloaded here: www.b4x.com/b4j/files/JsonTree.jar An online version of this tool... B4J Question Any other examples of tree structures - Erel (first post)    Nov 15, 2016   (2 reactions) There is an example of a binary tree sort algorithm: https://www.b4x.com/android/forum/threads/getting-started-examples.57537/... B4J Tutorial [Server] Online Json Tree Example - Erel    Jul 6, 2023   (4 reactions) parses the JSON string and returns the tree representation and also the B4A / B4J code you need in order... is that the tree is built with standard HTML lists, so instead of adding the elements to a real TreeView we need to build a string. The tree style is based on this blog: http://odyniec.net/articles/turning-lists-into-trees/ The HTML divs are scrollable. This is done with this plugin: http://www.jacklmoore.com... B4J Library [B4X] [XUI] SD_TreeList - Star-Dust    Apr 2, 2024   (23 reactions) SD_TreeList
Author: Star-Dust
Version: 0.27
B4XTree
Events:
Click (IDLeaf As String, LeafName...
Sort (Ascending As Boolean) As String
TreeToJson As String
Properties:
Base As B4XView... Page: 1   2   3   4   5   6   7   |