Data structure for content based search [closed] - search

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am implementing a virtual file system. As part of it, i am trying to add the content based search feature to it.
Basically content based search feature allows user to search for a "word" and the system returns all the file names which contain the "word" in their content.
In my view trie would serve my purpose. But it is not space efficient and while constructing it, it seems i need to populate wit with all the words from the entire content.
Please suggest me with a better get around solution.

Patricia tries could be a little more space efficient than the normal tries. Check if they might serve your purpose although I am not very sure.

Related

Algorithm to find where exactly two strings match/differ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am working on finding the similarity/differences in the source code of different java programs.
I've used an implementation of the Levenshtein algorithm to find how similar two programs are.
I want to know if there is any algorithm that can help in finding the exact positions where two strings differ.
You will find more than you ever wanted to know by looking at the inner workings of diff - see for example this link or simply the wiki article

How can I extract keywords from Tridion into an Excel format? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can I extract keywords from Tridion into an Excel format? This is for the purpose of translation of the website.
If you're using Tridion 2009: http://sdltridionworld.com/community/extension_overview/exporttoexcel.aspx
If you're not, you'll have to write some sort of script (really easy) to export it to CSV or similar.
If you are using the audience manager then you can use the work around of exporting and importing keywords for an address book. That will export to CSV and you can import it using the same format.
However for translation purposes (localizing keywords etc.) this might be cumbersome, in that case I would use Nuno's suggestion to write a script of some sort.

If one object is touched by another object, do something? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am making a game in which you move the character with the arrow keys, and I want to do something when it collides with a certain step. (See picture below). I want the top value of my character to increase every time it touches the steps, and the second flight of stairs, I want it to descend. I have tried and tried to no avail. Any help?
Doing a Bing search on Collosion detection with VB6, I found a few articles out there.
Try looking at:
http://www.vb6.us/tutorials/rectangular-and-circular-collision-detection-vb6
But as #Matt Ball is trying to say, is in order to help you we need to see what code you have tried. Otherwise anything we come up with is just a guess of what your problem is.

Searching and storing book titles from APIs like Amazon or Google Books [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
If a user on my site wants to add a book, can I do the following:
Send the text typed by the user to Amazon/Google Books API
If the users thinks thats the right book, Can I store the title as part of my own local Database?
Not sure about Amazon, but according to Google APIs Terms of Service, Section 5 - Prohibitions on Content:
Unless expressly permitted by the content owner or by applicable law, you agree that you will not, and will not permit your end users to, do the following with content returned from the APIs:
Scrape, build databases or otherwise create permanent copies of such content, or keep cached copies longer than permitted by the cache header;

Pagination of EPUB ebook [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a EPUB ebook and parser for the same.
EPUB is in freeflow style.
I wanted to know if there is any library available to paginate the parsed output depending on the rendering device Resolution and font size etc?
You may want to take a look at the epubjs library that they have posted on http://threepress.org/static/epubjs/. This is a pure javascript implementation that is most likely the closest thing to what you are looking for.
If you do not wish a client side javascript implementation then most likely you should be looking for a text layout engine as opposed to something that is specific to EPUB.

Resources