Which of the following data structure
R-tree,
R*-tree,
X-tree,
SS-tree,
SR-tree,
VP-tree,
metric-trees
provide reasonably good performance in insert, update and searching of multidimensional data stored in its corresponding form?
Is there a better data structure out there for handling multidimensional data?
...
Hi there everyone. I'm kinda noob to android so please bear with me. I'm currently developing app which uses tabs. My question now is: how to store values of variables so I can access them on the other tabs? I want to create something similar to sessions in PHP where I can save variables on one page and access on the other. Please can so...
Hi,
So I have to write a program that will iterate through an image and record the pixel locations corresponding to each color pixel that appears in it. For example, given
http://www.socuteurl.com/fishywishykissy
I need to find the coordinates of all yellow, purple, dark pink, etc pixels.
In C++ I would use a hash table to do this...
I am creating a custom module for a Magento ecommerce site, and the module will center around a new (ie, custom) table that has a compound/composite primary key, or rather the table has two columns that make up the primary key. Does anybody know how to create your models/resource models based on a table with a compound key?
To give a f...
At the JSON site it says
JSON does not support cyclic data
structures, so be careful to not give
cyclical structures to the JSON
stringifier.
What does it mean by this? Can someone give me an example of such a data structure in Javascript?
...
I have data from socket, which is header and message.
Header if of 5 bytes, 3rd and 4th is message length.
I am reading from socket, can someone suggest me good function, it will return me msg.
assuming that i am reading 1024 bytes and it may happen that i have recived only partial data.
...
Hello.
In simplistic terms, a feature structure is an unordered list of attribute-value pairs.
[number:sg, person:3 | _ ],
which can be embedded:
[cat:np, agr:[number:sg, person:3 | _ ] | _ ],
can subindex stuff and share the value
[number:[1], person:3 | _ ],
where [1] is another feature structure (that is, it allows reentranc...
as follow codes:
var a = {};
if(!!!a[tabType]){
a[tabType] = [];
a[tabType].push([self,boxObj]);
}else{
a[tabType].push([self,boxObj]);
}
i think !!!a[tabType] equals !a[tabType]
why use the "!!!" not "!" ?
thank you!
...
If memory were not scarce, how would you implement a sort in a language with libraries for representing and sorting sets
...
I have a data structure that is pretty simple (basically a structure containing some arrays and single values), but I need to record the history of the data structure so that I can efficiently get the contents of the data structure at any point in time.
Is there a relatively straightforward way to do this?
The best way I can think of w...
This is very similar to another question (Functional Data Structures in Java) but the answers there are not particularly useful.
I need to use immutable versions of the standard Java collections (e.g. HashMap / TreeMap / ArrayList / LinkedList / HashSet / TreeSet). By "immutable" I mean immutable in the functional sense (e.g. purely fun...
Does anyone out there who's familiar with Scala know how I could use scala.collection.immutable.Set from Java? I can vaguely read the scaladoc, but am not sure how to call scala methods like "-" from java (I assume that I just need to include some scala .jar file in my classpath...?)
...
In Java (Swing), say I've got a 2D game where I have various types of entities on the screen, such as a player, bad guys, powerups, etc. When the player moves across the screen, in order to do efficient checking of what is in the immediate vicinity of the player, I would think I'd want indexed access to the things that are near the char...
I'm looking for a C library that provides generic collection data structures such as lists, associative arrays, sets, etc. The library should be stable and well tested. I'm basically looking for something better than the crappy C standard library.
What C libraries fit this description?
EDIT: I'd prefer that the library was cross-platfo...
I want to know why we always use Sorting algorithm like (Insertion Sort or Merge Sort,...) just for lists and arrays? And why we do not use these algorithms for stack or queue?
...
Hi
I want to know that when we can sort a stack with a Collections.sort method so why we need a new data structure like max heap?thanks
...
When talking about a stack in either computing or "real" life we usually assume a "first on, last off" type of functionality.
Because the idea of a stack is based around something in the physical world, does it matter how the data in the stack is stored?
I notice in a lot of examples that the storage of the stack data is quite often do...
i am designing a database where users can update status messages of theirs and they can create pages groups like facebook fan page and post status like the admin of the page and not as a user.
user(id, name..)
group(id, name...)
group_admin(group_id, user_id)
this is my set up. Is this the way to do it.
How to post under the group a...
Hi,
I originally intended to use MATLAB to tackle this problem but the in-built function has limitations that do not suit my goal. The same limitation occurs in NumPy.
I have two tab-delimited files. The first is a file showing amino acid residue, frequency and count for an in-house database of protein structures, i.e.
A 0.25 1
...
I need to change the way I am storing information in the DB. Because the query works slow with the old model I had developed.
General problem is following.
1) I have list of courses, and each course has list of tags describing general content of the course. For instance, the course called "Database Management Systems" could have follow...