Find Jobs
Hire Freelancers

Class to manage URL category data structure in iOS(repost)(repost)

$100-120 USD

Cancelado
Publicado hace más de 12 años

$100-120 USD

Pagado a la entrega
I need a class to manage URL classification data structures on iOS (you don't need to do the actual classification, just create the data management, the data will come from files/function calls) You can read the full spec in the detailed requirements. ## Deliverables I need a class to manage URL classification data structures on iOS (you don't need to do the actual classification, just create the data management, the data will come from files/function calls) Stage 1: Defining the categories, there will be an enum in the class with all the possible categories (I will change it later to all my categories), here is a sample list (taken from my C program): typedef enum _CategoriesEnum { ceAbortion=1, ceAds, ceAdult, //Not porn, but still not child save ceViolence, ceNude, ceAstrology, ceBanking, ceAlcoholDrugs } CategoriesEnum Stage 2: Loading data from files, the data structure is directories under the main directory, each directory has a file called domains which contains the domains for that category, when I load the file I will specify the master directory and a list of conversion between the directory name and enum. Directory structure sample: Main dir: --ads ----domains (file) --adult ----domains (file) The lookup will be: ads -> ceAds adult -> ceAdult The data in the structure is a domain name, so for example: [login to view URL], [login to view URL], [login to view URL] The data should be stored in a data container that has a fast search capabilities like a tree or map There can be more then one category for a site. Stage 3: Looking up the data, I need a function that I will provide a URL to it, the function will extract the host from the url, for example: <[login to view URL]>, the function will only search [[login to view URL]][1] The way the function will search the data is by doing searches for all possible host name, for example: [[login to view URL]][1] will also be searched for [login to view URL] if the [[login to view URL]][1] was not found. If the category is found, I will get back the enum of the category or categories. Stage 4: Adding a URL, I will be able to add a URL using a call, for example: AddURL("[login to view URL]",ceBanking) I can also specify: AddURL("[login to view URL]",ceAds) and [login to view URL] will have more then one category. Stage 5: When creating the class, I will be able to decide at creation if I want the class to have locking for thread safe, or not. The thread safety only needs to be for adding/querying the data via the API, at the stage of loading the data, there's no need for safety. Stage 6: Provide a test app that will load the data from file (data will be provided by me), and give me a two text boxes, one to query categories, I will enter a url and it will write the category, the second text box will allow me to add a url and a category.
ID del proyecto: 3654746

Información sobre el proyecto

Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos

Sobre este cliente

Bandera de ISRAEL
Israel
4,9
146
Forma de pago verificada
Miembro desde abr 16, 2007

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.